new sorting for document pool