public static boolean getSortingOrder(String order)
			throws StreamParserException {
		order = order.toLowerCase();
		switch (order) {
			case "a":
			case "asc":
			case "ascending":
				return false;
			case "":
			case "d":
			case "desc":
			case "descending":
				return true;
			default:
				throw new StreamParserException();
		}
	}