add support for ordered factors