Fail queries that use aggregations in sorting with limit