Reference
SORT [ASCENDING|DESCENDING] [AS TEXT] [STABLE] [BY {field1 [ASCENDING|DESCENDING] [AS TEXT]} {field2 [ASCENDING|DESCENDING] [AS TEXT]} ...].
Sorts then extract dataset after the field group header.