Sortable Semantic Version Strings in Rails (part 2)

This post is part 2 of 3 describing how Semantic Version strings can be converted to sortable integers for easier and faster sorting.