Re: RE: [xsl] Unusual Sort

Subject: Re: RE: [xsl] Unusual Sort
From: Jon Gorman <jonathan.gorman@xxxxxxxxx>
Date: Wed, 13 Apr 2005 12:18:31 -0500
> Yes, I'd still like to see if a Carlislian translation can't be devised to
> sort the sequence into this order:
>
> Freshman
> Sophomore
> Junior
> Senior
> Graduate

I don't really have time to whip up a test case, but shouldn't J->S,
G->X, and e->x work..ie
Frxshman
Sophomorx
Sunior
Sxnior
Xraduatx

so this should look something like:
<xsl:sort select="translate('JGe','SXx',grade)"/>

Of course, for a more flexible sort I would try Jirka's suggestion.

Hopefulliy I'm not missing something obvious

Jon Gorman

Current Thread