overhaul sorting so it's deterministic and correct
* now sorted by most recent commit date or comment date, whichever is more recent