Java List Sort sortVersions(List versions)

Here you can find the source of sortVersions(List versions)

Description

sort Versions

License

Apache License

Declaration

private static void sortVersions(List<String> versions) 

Method Source Code

//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
    }
}

Related

  1. sortStringList(List l, boolean ascending)
  2. sortStringList(List stringList)
  3. sortStringList(String[] listToSort, String[] priorityList)
  4. sortUniq(List list)
  5. sortUniqueTags(List unsortedTags)
  6. stringListSort(List list)
  7. subtractSortedLists(List a, List b, Comparator comparator)
  8. toSortedList(Collection in)
  9. toSortedList(Collection collection)