Skip to content

Pods list does not sort properly for the Memory column #8303

@StingyJack

Description

@StingyJack

Describe the bug/To Reproduce
When viewing the pods list and attempting to sort (ascending or descending) it by the Memory column, the rows appear to be in a random order.

In the image below, I've clicked the memory column header to sort (the directional glyph is displayed), but you can see the numbers are not at all in order. 80, 27, 19, 18, 48, 24, 23, 26, etc. (these values are all in MiB). They aren't even in the correct order within a namespace.

Image

Expected behavior
I expect the pods list to be sorted by the actual memory values. 18, 19, 23, 24, 26, 27, 48, 80, etc or the reverse. Also this should factor in the units as well, so that it doesn't show as 18 MB is greater than 9 GB.

Environment (please complete the following information):

  • Lens Version:
Image - OS: Windows - Installation method : MSI

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions