Filtering, sorting, and aggregating data