Sorting migrations for status output