make Sort Ordering and Algorithm tokens instances instead of types
this eliminates many definitions and doesn't change typical uses at all