public ISort getSort(String name) {
        for (ISort sort : sortList) {
            if (name.compareTo(sort.getName()) == 0) {
                return sort;
            }
        }
        return null;
    }