Here you can find the source of sortVersions(List
private static void sortVersions(List<String> versions)
//package com.java2s; //License from project: Apache License import java.util.Collections; import java.util.List; public class Main { private static void sortVersions(List<String> versions) { // Sort the versions in order to set <release> by figuring out the most recent upload if (versions != null) { Collections.sort(versions); }// w w w .ja v a 2s . co m } }