Re: Sort directory-list

Dear All,


> The XPath 3.1 sort() function has a @key attribute where you can create
> your own function as a sort key. I haven't tried it, but if I've understood
> the spec correctly, you can write a function that sorts by just the numeric
> portion of the filename.
>

Oops! Functions don't take attributes, of course. What I meant is that
sort() takes an optional third argument in which you can specify a function
that constructs a sort key. Apologies for the carelessness.

Received on Thursday, 21 November 2024 16:10:07 UTC