[xsl] Sorting Using A Predefined Order

Subject: [xsl] Sorting Using A Predefined Order
From: Jeff Sese <jsese@xxxxxxxxxxxx>
Date: Thu, 21 Jun 2007 12:16:16 +0800

Is it possible to sort some data according to a predefined ordering?

I have a file like:

   <head>Some text 1</head>
   <head>Some text 2</head>
   <head>Some text 3</head>
   <head>Some text <4/head>
   <head>Some text 5</head>

and i want it sorted using this ordering:

Some text 2
Some text 3
Some text 5
Some text 1
Some text 4

Is the only solution to this is creating my own collation?

-- Jeff

Current Thread