Sorting migrations before running