sort migrations