Home | History | Annotate | Download | only in sorting

Lines Matching refs:direction

84      * the sort direction has changed.
150 * Sort by the default direction of the given dimension if user has never specified any sort
151 * direction before.
169 * Sort by given dimension and direction. Should only be used when user explicitly asks to sort
172 * @param direction the direction to sort docs in
174 public void sortByUser(int dimensionId, @SortDirection int direction) {
180 sortByDimension(dimension, direction);
190 SortDimension newSortedDimension, @SortDirection int direction) {
192 && mSortedDimension.mSortDirection == direction) {
193 // Sort direction not changed, no need to proceed.
197 if ((newSortedDimension.getSortCapability() & direction) == 0) {
200 + " can't be sorted in direction:" + direction);
203 switch (direction) {
206 newSortedDimension.mSortDirection = direction;
209 throw new IllegalArgumentException("Unknown sort direction: " + direction);
283 "Unexpected sort direction: " + dimension.getSortDirection());
321 final String direction;
324 direction = " ASC";
327 direction = " DESC";
331 "Unexpected sort direction: " + dimension.getSortDirection());
334 return columnName + direction;
352 * Sort by default dimension and direction if there is no history of user specifying a sort