Re: [PATCH] gitweb: Sort projects with undefined ages last

2012-12-11 Thread Junio C Hamano
Matthew Daley writes: > I thought about both of those variants as well. What about this: > > -- >8 -- > Subject: [PATCH] gitweb: Sort projects with undefined ages last > > Sorting gitweb's project list by age ('Last Change') currently shows > projects with

Re: [PATCH] gitweb: Sort projects with undefined ages last

2012-12-11 Thread Matthew Daley
}, > age => sub { ... the num cmp with undef above ... }, > ); > if (!exists $order_sort{$order}) { > return @$projlist; > } > return sort $order_sort{$order} @$projlist; > > I am not sure the second one is

Re: [PATCH] gitweb: Sort projects with undefined ages last

2012-12-09 Thread Junio C Hamano
Matthew Daley writes: > Sorting gitweb's project list by age ('Last Change') currently shows > projects with undefined ages at the head of the list. This results in a > less useful result when there are a number of projects that are missing > or otherwise faulty and one is trying to see what proj

[PATCH] gitweb: Sort projects with undefined ages last

2012-12-09 Thread Matthew Daley
Sorting gitweb's project list by age ('Last Change') currently shows projects with undefined ages at the head of the list. This results in a less useful result when there are a number of projects that are missing or otherwise faulty and one is trying to see what projects have been updated recently.