summaryrefslogtreecommitdiff
path: root/ui-repolist.c
diff options
context:
space:
mode:
authorLars Hjemli <hjemli@gmail.com>2008-11-29 14:27:35 +0100
committerLars Hjemli <hjemli@gmail.com>2008-11-29 14:27:35 +0100
commit54272e60965ec6a98b49cbf67d72a4b1f5adc55b (patch)
tree183bc1876d0c53b879627bb9fd66f2978d41929e /ui-repolist.c
parentf250c1ca2ea7f35d65f639e42e8b8f0657515e5d (diff)
downloadcgit-54272e60965ec6a98b49cbf67d72a4b1f5adc55b.tar.gz
cgit-54272e60965ec6a98b49cbf67d72a4b1f5adc55b.tar.bz2
cgit-54272e60965ec6a98b49cbf67d72a4b1f5adc55b.zip
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>
Diffstat (limited to '')
-rw-r--r--ui-repolist.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui-repolist.c b/ui-repolist.c
index 0de328b..cf27cb3 100644
--- a/ui-repolist.c
+++ b/ui-repolist.c
@@ -116,9 +116,9 @@ static int cmp(const char *s1, const char *s2)
if (s1 && s2)
return strcmp(s1, s2);
if (s1 && !s2)
- return 1;
- if (s2 && !s1)
return -1;
+ if (s2 && !s1)
+ return 1;
return 0;
}
015-01-13 17:12:04 -0200'>2015-01-13Rakefile: re-indentAntonio Terceiro1-35/+35 2015-01-13Rakefile: run tests in verbose modeAntonio Terceiro1-1/+2 2014-10-071.2.3 releaseAntonio Terceiro1-1/+1 2014-10-07Fix cleanup of maildirsAntonio Terceiro3-1/+16 2014-05-18feed2imap-test: reuse cache dir/protect configAntonio Terceiro1-1/+1 2014-02-13feed2imap-test: can now take a feed URL as argumentAntonio Terceiro1-3/+22 2014-02-13update .gitignoreAntonio Terceiro1-0/+2 2014-02-13fix dependency on ruby-feedparserAntonio Terceiro1-1/+1 2014-02-05Release 1.2.2Antonio Terceiro2-2/+2 2014-02-05config: fix regression with arrays as targetAntonio Terceiro2-1/+17 2013-08-28Fix teardown method nameAntonio Terceiro1-1/+1