private String getParameter(@NonNull Sort.Order order) { Assert.isTrue(!order.isIgnoreCase(), "Ignore case is not supported"); final String direction = order.isDescending() ? "DESC" : "ASC"; return String.format("r.%s %s", order.getProperty(), direction); }