Properly sort versions, closes #8.