Fixed comparators for ordering sets of WorkItems and WorkGroups.