Versions returned in the wrong order

Closes #25