new ordered query test