freebsd-src/usr.bin/top
Kyle Evans 5f72125339 top: improve sort field storage/lookup
Switch up comparator mapping to avoid these kinds of errors, use a
simple array of (name, comparator) pairs rather than having to maintain
entries in two separate arrays that must have matching indices.

Reviewed by:	obiwac
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D37083
2025-08-09 11:00:31 -05:00
..
commands.c
commands.h
display.c
display.h
layout.h
loadavg.h
machine.c top: improve sort field storage/lookup 2025-08-09 11:00:31 -05:00
machine.h top: improve sort field storage/lookup 2025-08-09 11:00:31 -05:00
Makefile
Makefile.depend
screen.c
screen.h
top.1 top.1: Fix incorrect default value for -s option 2025-07-24 16:06:21 -04:00
top.c top: improve sort field storage/lookup 2025-08-09 11:00:31 -05:00
top.h
username.c
username.h
utils.c top: improve sort field storage/lookup 2025-08-09 11:00:31 -05:00
utils.h top: improve sort field storage/lookup 2025-08-09 11:00:31 -05:00