totalSize = rows.size();
Collection<SortInfo> sorters = request.getSorters();
if (!sorters.isEmpty()) {
SortInfo sortInfo = sorters.iterator().next();
assertThat(sortInfo.getProperty()).isEqualTo("id");
if (sortInfo.getDirection() == SortDirection.ASCENDING) {
Collections.sort(rows);
}
else {
Collections.sort(rows, new Comparator<Row>() {