mysterioustrousers / MTMigration

Manages blocks of code that only need to run once on version updates in iOS apps.
BSD 2-Clause "Simplified" License
914 stars 50 forks source link

Use of natural sort order #1

Closed Clafou closed 11 years ago

Clafou commented 11 years ago

I've made a tweak (with added test) so that MTMigration treats version numbers in natural sort order instead of lexicographical order. This means that version 0.10 is now treated as coming after 0.9, not the other way around.

(Yes, I included MTMigration in a project of mine, thank you, it's just what I needed! The project is at version 1.8 and I'll be hitting 1.10 soon so I can see the need for natural sort order coming! :) )

pwightman commented 11 years ago

You, my friend, are a gentleman and a scholar. Thanks!

Clafou commented 11 years ago

Delighted to contribute! :)

pwightman commented 11 years ago

@Clafou Just pushed version 0.0.2 of the cocoapod, if you're using cocoapods.