MCPcopy Index your code
hub / github.com/ccxt/ccxt / sort

Method sort

java/lib/src/main/java/io/github/ccxt/base/Functions.java:99–114  ·  view source on GitHub ↗
(Object inputListObj)

Source from the content-addressed store, hash-verified

97 // sort
98 // -------------------------------------------------
99 public static List<String> sort(Object inputListObj) {
100 List<String> sorted = new ArrayList<>();
101
102 if (inputListObj instanceof List<?>) {
103 List<?> list = (List<?>) inputListObj;
104 for (Object item : list) {
105 if (item instanceof String s) sorted.add(s);
106 }
107 } else {
108 // unsupported type -> empty list
109 return sorted;
110 }
111
112 Collections.sort(sorted);
113 return sorted;
114 }
115
116 // -------------------------------------------------
117 // omit overloads

Callers 8

paramsToStringMethod · 0.45
parseParamsMethod · 0.45
customEncodeMethod · 0.45
sortJsonKeysMethod · 0.45
urlencodeMethod · 0.45
sortByMethod · 0.45
sortBy2Method · 0.45
keysortMethod · 0.45

Calls 1

addMethod · 0.45

Tested by

no test coverage detected