library: make the pids_sort_order enums more intuitive

The values of PROCPS_SORT_ASCEND & PROCPS_SORT_DESCEND
were a tad unintuitive. This patch will just make them
a more natural +1 for ascending and -1 for descending.

[ plus it still allows that fast path multiplication ]
[ instead of a comparison for signed numbers/strings ]

Signed-off-by: Jim Warner <james.warner@comcast.net>
This commit is contained in:
Jim Warner
2015-09-13 00:00:00 -05:00
committed by Craig Small
parent 872be3a3a2
commit 86b155b83f
2 changed files with 8 additions and 8 deletions

View File

@@ -150,8 +150,8 @@ enum pids_reap_type {
};
enum pids_sort_order {
PROCPS_SORT_ASCEND = -1,
PROCPS_SORT_DESCEND = +1
PROCPS_SORT_ASCEND = +1,
PROCPS_SORT_DESCEND = -1
};