Fixes #8. Sort versions by number instead of alphabetically.

Moves sorting to as soon as we get the tags so that any time we use them they're in the right order.