Add ordering to durations
Add ordering to durations

Active durations should be shown before inactive ones, ordering by the
actual duration in ascending order.

djds23/pygotham-1,pathunstrom/pygotham,djds23/pygotham-1,pathunstrom/pygotham,djds23/pygotham-1,pathunstrom/pygotham,PyGotham/pygotham,PyGotham/pygotham,djds23/pygotham-1,PyGotham/pygotham,PyGotham/pygotham,PyGotham/pygotham,djds23/pygotham-1,pathunstrom/pygotham,pathunstrom/pygotham