diff options
author | Benny Baumann <BenBE@geshi.org> | 2020-12-18 22:12:26 +0100 |
---|---|---|
committer | BenBE <BenBE@geshi.org> | 2020-12-19 16:02:34 +0100 |
commit | 77db240b4851a5c739ff48de9d383707dcbfc490 (patch) | |
tree | 4351fe69c53716241d6d61653fc9c217556f220e /linux/LinuxProcess.c | |
parent | 2327260ee888146beab3da66507c7744334a6973 (diff) |
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.
Diffstat (limited to 'linux/LinuxProcess.c')
-rw-r--r-- | linux/LinuxProcess.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/LinuxProcess.c b/linux/LinuxProcess.c index 9e184b64..72955c8f 100644 --- a/linux/LinuxProcess.c +++ b/linux/LinuxProcess.c @@ -857,7 +857,7 @@ static long LinuxProcess_compareByKey(const Process* v1, const Process* v2, Proc case CWD: return SPACESHIP_NULLSTR(p1->cwd, p2->cwd); default: - return SPACESHIP_NUMBER(v1->pid, v2->pid); + return Process_compareByKey_Base(v1, v2, key); } } |