habitat ordinal sorting