This GEM is sorting Arrays in a natural order. a2 < a10. Beside that this GEM has some methods to sort version strings. It even recognises alpha, beta, RC, dev and stable versions.
reiz, versioneye
gem "naturalsorter", "~> 2.0.6"