package guava.demo.ordering;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import com.google.common.collect.Ordering;
public class Demo {
public static void main(final String[] args) {
final List<String> values = Arrays.asList("one", "two", "buckle", "my", "shoe");
Collections.sort(values, Ordering.natural()); (1)
System.out.println(values);
}
}
// Outputs: [buckle, my, one, shoe, two]