Fixed version sorting