Author: Lars Hjemli <hjemli@gmail.com>
ui-repolist: sort null values last When sorting on e.g. owner, it's not interesting to get all repos without owner at the top of the list. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
ui-repolist.c | 4 ++--
diff --git a/ui-repolist.c b/ui-repolist.c
index 0de328b206ae34884b5cfb2209e9a0ee40b85706..cf27cb3072a2cca564bac95f733fe5bfe489f901 100644
--- a/ui-repolist.c
+++ b/ui-repolist.c
@@ -116,9 +116,9 @@ {
if (s1 && s2)
return strcmp(s1, s2);
if (s1 && !s2)
- return 1;
- if (s2 && !s1)
return -1;
+ if (s2 && !s1)
+ return 1;
return 0;
}