Bug 208055 [Markers] Need a sorting method for the markers view
As there is currently no accessible way to change sort order or direction. A menu should be enough.
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/provisional/views/markers/MarkerContentGenerator.java
} else
			returnMarkers = computeAllMarkers(subMonitor);
		MarkerEntry[] entries = new MarkerEntry[returnMarkers.size()];
		Iterator markers = returnMarkers.iterator();
		int index = 0;
		
		while (markers.hasNext()) {
			entries[index] = new MarkerEntry((IMarker) markers.next());
			index++;
		}
		return new MarkerMap(entries);
	}
	/**
	 * Iterate through the return markers. If they do not exist in matching
	 * remove them.
	 * 
	 * @param matching
	 * @param returnMarkers
	 */
	private void findIntersection(Collection matching, Collection returnMarkers) {
		HashSet removeMarkers = new HashSet();
		Iterator existing = returnMarkers.iterator();
		while (existing.hasNext()) {
			Object next = existing.next();
			if (matching.contains(next))
				continue;
			removeMarkers.add(next);
		}
		returnMarkers.removeAll(removeMarkers);
	}