This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Sort problem
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] Sort problem
- From: "Michael Kay" <mhkay at iclway dot co dot uk>
- Date: Fri, 26 Jan 2001 11:18:14 -0000
- Reply-To: xsl-list at lists dot mulberrytech dot com
>
> a, 1, 1, 1
> a, 1, 1, 3
> a, 1, 2, 2
> a, 1, 2, 3
> A, 1, 1, 2
> A, 1, 2, 1
>
> which is not what I want. The desired output should be:
>
> a, 1, 1, 1
> A, 1, 1, 2
> a, 1, 1, 3
> A, 1, 2, 1
> a, 1, 2, 2
> a, 1, 2, 3
>
> thus ingoring capital letters.
I think you want your primary sort key to be:
xsl:sort select="translate(., 'ABC...', 'abc....')"
Mike Kay
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list