all repos — cgit @ 54272e60965ec6a98b49cbf67d72a4b1f5adc55b

a hyperfast web frontend for git written in c

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>
Lars Hjemli hjemli@gmail.com
Sat, 29 Nov 2008 14:27:35 +0100
commit

54272e60965ec6a98b49cbf67d72a4b1f5adc55b

parent

f250c1ca2ea7f35d65f639e42e8b8f0657515e5d

1 files changed, 2 insertions(+), 2 deletions(-)

jump to
M ui-repolist.cui-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; }