Add number of records and sort order settings