/** * Returns a new {@link Sort} with the current setup but ascending order direction. * * @return */ public Sort ascending() { return withDirection(Direction.ASC); }
/** * Returns a new {@link Sort} with the current setup but descending order direction. * * @return */ public Sort descending() { return withDirection(Direction.DESC); }