@Override
		public int compare(Color c1, Color c2) {
			int alpha1 = c1.getAlpha();
			int alpha2 = c2.getAlpha();

			if (alpha1 == alpha2) {
				return getHsbCompareValue(c1) - getHsbCompareValue(c2);
			}
			return alpha1 - alpha2;
		}
A color {@link Comparator} for ordering colors.
Ghidra/Framework/Gui/src/main/java/ghidra/util/ColorUtils.java