Improved logic in sortable so grouping only affects to unique persons column