How do I call fn:sort() in Saxon from Java with multiple sort keys
问题 How do I use the sort function in Saxon when calling it from Java (not from XSLT). For example, for the query (data modeled on the Northwind database) I can get unsorted data using: /windward-studios/Employees/Employee But I want to get it sorted like the following (using SQL syntax here): /windward-studios/Employees/Employee order by City descending, LastName ascending How do I write the query to accomplish this? The full code for this is in SaxonQuestions.zip (minus license key) - TestSort