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/ConcreteMarker.java
private String description;
    private String resourceName;
    private String inFolder;
    private CollationKey descriptionKey;
    private CollationKey resourceNameKey;
    private int line;
    
    private String locationString;
    private long creationTime;
    private String type;
    private IMarker marker;
    /**
     * Cache for the marker ID.
     */
	private long id = -1L;
	private MarkerNode markerCategory;
	private String shortFolder;
	
	private String group;
	public ConcreteMarker(IMarker toCopy) {
        marker = toCopy;
        refresh();
    }
    /**
     * Clears any cached information. This frees up some memory, but will slow down
     * the next comparison operation. It is a good idea to call this on a set of markers
     * after sorting them, in order to reduce their memory cost.