Fixed version sorting for deployment script.