public static Comparator<?> getCompareType(String name){
		for (HistorySortType status : values()) {
		      if (name.equals(status.methodname)) {
		        return status.compartype;
		      }
		}
		return new ComparatorTime();
	}