FIRST/LAST support in grouping fields