}
private <X> QueryResult<T> changeOrder(ChangeOrder changeOrder) {
for (QueryStringPostProcessor processor : context.getQueryStringPostProcessors()) {
if (processor instanceof OrderByQueryStringPostProcessor) {
OrderByQueryStringPostProcessor orderBy = (OrderByQueryStringPostProcessor) processor;
if (changeOrder.matches(orderBy)) {
orderBy.changeDirection();
return this;
}
}
}
changeOrder.addDefault();