config/src/main/java/org/springframework/security/config/annotation/web/builders/FilterComparator.java
private Integer getOrder(Class<?> clazz) {
		while (clazz != null) {
			Integer result = filterToOrder.get(clazz.getName());
			if (result != null) {
				return result;
			}
			clazz = clazz.getSuperclass();
		}
		return null;
	}
private Integer getOrder(Class<?> clazz) {
		while (clazz != null) {
			Integer result = filterToOrder.get(clazz.getName());
			if (result != null) {
				return result;
			}
			clazz = clazz.getSuperclass();
		}
		return null;
	}
Gets the order of a particular {@link Filter} class taking into consideration
superclasses.

@param clazz the {@link Filter} class to determine the sort order
@return the sort order or null if not defined