code: public void addSort(Object object, int sort, int priority) {
          key.addPrimitiveValue(String.format(SORT_LABEL, priority), object, sort, priority);
      }
docs: Add sort key
  @param object Java primitive sort key
  @param sort sort type SORT_NON or SORT_LOWER or SORT_UPPER
  @param priority sort order