fixed the sort by field to sort on the group id not the history id