fix massive memory leak in paginator when sorting with lots of objects