code: public void addField(String fieldName, SortDirection sortDirection) {
          if (sortFields == null) sortFields = new HashMap<>();
  
          sortFields.put(fieldName, sortDirection);
      }
docs: Adds field to sort by.
  
  @param fieldName     Property name to sort by.
  @param sortDirection Sort direction.