Re: improvements to fn:sort functions

On Fri, 2021-01-15 at 10:22 +0530, Mukul Gandhi wrote:
> 
> 
> I propose, to add an optional trailing parameter [$sortOrder as
> xs:integer]
> to the three fn:sort functions. The value 0 can be for ascending
> sorting
> (which could be default), and value 1 for descending sorting.

Or we could call the functions tros() instead of sort() :)

Probably such a parameter should be a string, either "ascending" or
"descending" as in xsl:sort instrucitons.


-- 
Liam Quin, https://www.delightfulcomputing.com/
Available for XML/Document/Information Architecture/XSLT/
XSL/XQuery/Web/Text Processing/A11Y training, work & consulting.
Barefoot Web-slave, antique illustrations:  http://www.fromoldbooks.org

Received on Friday, 15 January 2021 05:12:51 UTC