fixed bug in sorting of data_migrations by version