Sets the internal member of type <code>{@link Sort}</code> according to
the given sort name. <p>

For a list of valid sort names, please see <code>{@link #SORT_NAMES}</code>.<p>

@param sortName the name of the sort to use

@see #SORT_NAMES
778577
public void setSortName(String sortName) {

        if (sortName.equals(SORT_NAMES[1])) {
            m_sort = SORT_DATE_CREATED;
        } else if (sortName.equals(SORT_NAMES[2])) {
            m_sort = SORT_DATE_LASTMODIFIED;
        } else if (sortName.equals(SORT_NAMES[3])) {
            m_sort = SORT_TITLE;
        } else {
            m_sort = SORT_DEFAULT;
        }
    }
636298
public void setName(final String name) {
		this.name = name;
		setHumanName(JKMessage.get(name, true));
	}
1226786
public void setName(String name) {
        this.name = name;

        List<Token> tokens = Tokenizer.tokenize(name, true);
        int tokenCount = 0;

        for (Token t : tokens) {
            if (t.getType() != TokenType.TEXT) {
                tokenCount++;
            }
        }

        if (tokenCount > 0) {
            this.nameTokens = tokens.toArray(new Token[0]);
        } else {
            this.nameTokens = null;
        }
    }
744456
public SelectBuilder orderBy(String name, boolean ascending) {
        if (ascending) {
            orderBys.add(name + " asc");
        } else {
            orderBys.add(name + " desc");
        }
        return this;
    }
1351805
@Override
    public void setName(String name) {
        room.setName(name);
        apiRoom.setName(name);
    }
99424
public void sort(final int sortCol, final boolean sortAsc) {
		int[] rowIndexMappings = getTableModel().sort(sortCol, sortAsc);
		getOrCreateComponentModel().rowIndexMapping = rowIndexMappings;

		setSort(sortCol, sortAsc);

		if (rowIndexMappings == null) {
			// There's no way to correlate the previously selected row indices
			// with the new order of rows, so we need to clear out the selection.
			setSelectedRows(null);
			setExpandedRows(null);
		}
	}
1028130
public void setName(String name) {
        String oldname = this.name;
        this.name = name;
        //TODO Reset the main map
        save(oldname);
    }
163399
public void setComparator(int index, Comparator<T> comparator, boolean ascending) {
        this.comparators.set(index, new InvertibleComparator<>(comparator, ascending));
    }
594512
public static <T extends Comparable<? super T>> void sort (T[] a)
    {
        sort(a, 0, a.length - 1);
    }
116841
public void setXSDTypeName(String name) {
    this.xsdTypeName = name;
    Integer code = (Integer)JSBaseTypes.xsdTypeNames.get(name);
    if (code == null)
      throw new IllegalArgumentException("XSDTypeName=" + name);
    setTypeCode(code.intValue());
  }
1082226
public void setName(String name) {
        name = name == null ? null : name.trim();
        if (name == null || "".equals(name))
            throw new IllegalArgumentException("invalid label name");
        this.name = name;
    }
536758
public void setSortOption(String sortOption) {

        if (null != sortOption) {
            try {
                m_sortOrder = CmsSimpleSearchConfigurationParser.SortOption.valueOf(sortOption);
            } catch (IllegalArgumentException e) {
                m_sortOrder = null;
                LOG.warn(
                    "Setting illegal default sort option " + sortOption + " failed. Using Solr's default sort option.");
            }
        } else {
            m_sortOrder = null;
        }
    }
518784
public void setSortMode(final SortMode sortMode) {
		getOrCreateComponentModel().sortMode = sortMode == null ? SortMode.NONE : sortMode;
	}
192472
public void addColumn(Column<T, ?> column, String headerName,
                          boolean sortable) {
        addColumn(column, headerName);
        column.setSortable(sortable);
        if (sortable) {
            defaultSortOrderMap.put(column, true);
        }
    }
806041
protected void setInnerName(String innerName) {

        m_innerName = innerName;
        if (m_innerName != null) {
            m_typeName = createTypeName(innerName);
        }
    }
788147
public void setName(String name) {
        mName = name;
        if (mSceneObject != null) {
            mSceneObject.setName(name);
        }
    }
1276037
public void setName(String name) {
        if (name.endsWith(ARRAY_SUFFIX)) {
            this.name = name.substring(0, name.length() - 2);
            type = ItemType.ARRAY;
        } else if (name.endsWith(MAP_SUFFIX)) {
            this.name = name.substring(0, name.length() - 2);
            type = ItemType.MAP;
        } else {
            this.name = name;
            if (type == null) {
                type = ItemType.SINGLE;
            }
        }
    }