Fix ordering of snapshots.

Specifically, snapshot id should be the _least_ relevant attribute of snapshot ordering, first we want to pick the best available date, and second we want to pick the most recent commit for that date.

@nhibberd