made xOrderOf faster, is_na is now non-vectorised