HomeFreeBSD

top: fix sorting by pid (-o pid)

Description

top: fix sorting by pid (-o pid)

The 'pid' order was added, but the equivalent comparator was not back in
8b800d3af2d8c ("Add the PID column to the list of sort keys.").
ordernames indices need to match compares indices in order for this
to work.

A future commit will restructure all of this to make it less error prone
going forward (see D37083).

MFC after: 3 days
Reviewed by: pstef (D37083)

(cherry picked from commit deb63adf945d446ed91a9d84124c71f15ae571d1)

Details

Provenance
kevansAuthored on Feb 13 2023, 6:39 AM
Parents
rGa80643d2a94f: md5: fix *sum -c with missing files
Branches
Unknown
Tags
Unknown