Initial support for key order; needs tests.
Teach xprops to be ordered.