Sort snapshots when listing.
Sort dependencies when displaying result of verify.
Fix multiple subtle bugs in dependency verification.