Statistical query group and sort results This sample demonstrates how to query a feature table to get statistics for a specified field and to group and sort the results.