use sorting_type instead of sorting_order

This I think achieves what you were seeking - does it?