sorting snapshots