@Test
    void testOrdering() {
        assertParse("select foo from bar where title contains \"madonna\" order by something asc, " +
                "shoesize desc limit 600 timeout 3",
                "title:madonna");
        assertEquals(2, parser.getSorting().fieldOrders().size());
        assertEquals("something", parser.getSorting().fieldOrders().get(0).getFieldName());
        assertEquals(Order.ASCENDING, parser.getSorting().fieldOrders().get(0).getSortOrder());
        assertEquals("shoesize", parser.getSorting().fieldOrders().get(1).getFieldName());
        assertEquals(Order.DESCENDING, parser.getSorting().fieldOrders().get(1).getSortOrder());

        assertParse("select foo from bar where title contains \"madonna\" order by other limit 600 " +
                "timeout 3",
                "title:madonna");
        assertEquals("other", parser.getSorting().fieldOrders().get(0).getFieldName());
        assertEquals(Order.ASCENDING, parser.getSorting().fieldOrders().get(0).getSortOrder());
    }
Specification for the conversion of YQL+ expressions to Vespa search queries.

@author Steinar Knutsen
@author Stian Kristoffersen
container-search/src/test/java/com/yahoo/search/yql/YqlParserTestCase.java