match class select order to type index