W3C home > Mailing lists > Public > public-xslt-40@w3.org > January 2021

Re: improvements to fn:sort functions

From: Liam R. E. Quin <liam@fromoldbooks.org>
Date: Fri, 15 Jan 2021 00:12:35 -0500
Message-ID: <e36d073be94e4fe4f36809742df762262d379ea4.camel@fromoldbooks.org>
To: Mukul Gandhi <gandhi.mukul@gmail.com>, public-xslt-40@w3.org
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

This archive was generated by hypermail 2.4.0 : Friday, 15 January 2021 05:12:51 UTC