private void sortChildren() {
			ColorSorter sorter = (ColorSorter) colorSortCombo.getSelectedItem();

			List<GTreeNode> children = new ArrayList<>(getChildren());
			if (children.isEmpty()) {
				return;
			}
			for (GTreeNode node : children) {
				((ColorNode) node).sort(sorter);
			}

			if (children.get(0) instanceof ColorValueNode) {
				Collections.sort(children);
			}
			else {
				Collections.sort(children, (a, b) -> sorter.compare(((ColorNode) a).getColor(),
					((ColorNode) b).getColor()));
			}
			setChildren(children);

		}
Tree for showing colors organized by similar colors and reference relationships. This was
built as a developer aid to help consolidate similar colors in Ghidra. This may be removed
at any time.
Ghidra/Framework/Docking/src/main/java/docking/theme/gui/ThemeColorTree.java