Bug 124124 [Markers] Group sorting needs criterea other than lexical value
20060117 Lexicial sorting is not good enough for the severity group as we need to sort errors before warnings and the translation of the word error may not appear lexically before warnings. The sorting of groups needs to be the same as the sort order of thier elements. This turns out to be an issue for groups contributed via attributes as well. My suggestion is that allow the group to sort either by attribute value or by name (the default) so that sort order can be supplied by the group contributor. I am including the JDT team as they may want to use this support to determine sort ordering within thier groups.
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerSupportRegistry.java
private static final String RESOURCE = "RESOURCE";
	private static final String SEVERITY_HIERARCHY = "SEVERITY";
	private static final String DIRECTION = "direction";
	private static final String ASCENDING = "ASCENDING"; 
	private static final String ATTRIBUTE_MAPPING = "markerAttributeMapping"; 
	private static final Object MARKER_GROUPING = "markerGrouping"; 
	private static final String ATTRIBUTE = "attribute"; 
	private static final String VALUE = "value"; 
	private static MarkerSupportRegistry singleton;
	
	private static Object creationLock = new Object();
	/**
	 * Get the instance of the registry.
	 * 
	 * @return MarkerSupportRegistry
	 */
	public static MarkerSupportRegistry getInstance() {
		if (singleton == null) {
			synchronized (creationLock) {
				if (singleton == null)
					
					singleton = new MarkerSupportRegistry();
			}
		}
		return singleton;
	}
	private Collection registeredFilters = new ArrayList();
	private Collection markerGroups = new ArrayList();
	private HashMap categories = new HashMap();
	private HashMap hierarchyOrders = new HashMap();