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