I have a List where T is my Event type which has a field time of type long. This list is populated from
List
T
Event
time
long
You should do something like this:
if(x.time==y.time) return 0; if(x.time==0) return 1; return x.time - y.time;
The point here is that 0 is larger than any other time, so it'll be placed at the end of the list.