import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
+import java.util.Comparator;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
private static final String ATTR_ID = "id";
-
+ private static final Comparator<EditorAdapter> ADAPTER_COMPARATOR = (o1, o2) -> -(o1.getPriority() - o2.getPriority());
+
private static class Group {
public final String id;
public final List<EditorAdapterDescriptor> adapters;
}
result = gatherAdapterResult(l);
+
+ Arrays.sort(result, ADAPTER_COMPARATOR);
+
updateCache(r, result);
if (status != null && !status.isOK())