From 77db240b4851a5c739ff48de9d383707dcbfc490 Mon Sep 17 00:00:00 2001 From: Benny Baumann Date: Fri, 18 Dec 2020 22:12:26 +0100 Subject: Split boilerplate and platform-independent field comparison This acheives two things: - Allows for simple tie-breaking if values compare equal (needed to make sorting the tree-view stable) - Allows for platform-dependent overriding of the sort-order for specific fields Also fixes a small oversight on DragonFlyBSD when default-sorting. --- openbsd/OpenBSDProcess.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'openbsd') diff --git a/openbsd/OpenBSDProcess.c b/openbsd/OpenBSDProcess.c index 532093f1..9756f9bb 100644 --- a/openbsd/OpenBSDProcess.c +++ b/openbsd/OpenBSDProcess.c @@ -222,7 +222,7 @@ static long OpenBSDProcess_compareByKey(const Process* v1, const Process* v2, Pr switch ((int) key) { // add OpenBSD-specific fields here default: - return SPACESHIP_NUMBER(v1->pid, v2->pid); + return Process_compareByKey_Base(v1, v2, key); } } -- cgit v1.2.3