sorting snapshots based on snapshot time