Commit e45f821b by 向延琳

排序

1 parent 8b9b9496
...@@ -10,7 +10,7 @@ import java.util.Objects; ...@@ -10,7 +10,7 @@ import java.util.Objects;
*/ */
public class CollectionSortUtil { public class CollectionSortUtil {
public final static String naturalOrder = "AEC"; public final static String naturalOrder = "ASC";
public static <T extends Comparable<? super T>> Comparator<T> order(String order) { public static <T extends Comparable<? super T>> Comparator<T> order(String order) {
if (Objects.equals(order, naturalOrder)) { if (Objects.equals(order, naturalOrder)) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!