public PushOptions sort ( @ Nullable final Integer sort ) { if ( sortDocument != null ) { throw new IllegalStateException ( "sort can not be set if sortDocument already is" ) ; } this . sort = sort ; return this ; }
Sets the sort direction for sorting array elements that are not documents .