Correctly sort versions.