test the ordinal field sorting