aristocratos / bashtop

Linux/OSX/FreeBSD resource monitor
Apache License 2.0
10.79k stars 552 forks source link

[BUG] Sort should be numeric #190

Open pandiloko opened 4 years ago

pandiloko commented 4 years ago

Sort should be numeric instead of alphabetic

when sorting by memory, threads or CPU 15 comes after 2 because (apparently) it uses alphabetic sorting.

To Reproduce

This happens if you have a number that comes alphabetically before but has a higher absolute value than other. (e.g. 15 and 2 or 25 and three).

Expected behavior

should behave like coreutils sort -n (numeric sort)

Screenshots

2020-08-24-14:31:37

Info (please complete the following information):

Additional context

contents of $HOME/.config/bashtop/error.log

New instance of bashtop version: 0.9.25 Pid: 5478
PSUTIL ERROR! Command: get_disks(exclude='squashfs')
not sure how to interpret line '   7       0 loop0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0\n'