fix sort migrations