When I have to deal with alot of sorting.... I usually put everything in a
Strongly Typed DataSet.
If you have have control over the XML being sent... you can send it as
xml... to mimick the DataSet schema.
...
If not, you may have to do a Xml to Xml transformation .. to get the xml
formatted correctly.
MyStronglyTypedDataSet ds = new MyStrongTypedDataSet();
ds.//Code here to get your xml into the DataSet
ds.Select("", "LastName, FirstName, Age Desc");
the first parameter is the filter... which you set to empty string... the
second parameter is the sortby.
Look up the DataSet.Select command.
xsl sorting is pretty ... limited. so I don't chose that route anymore.
"Jon Paal" <Jon[ nospam ]Paal @ everywhere dot com> wrote in message
news:%2******************@TK2MSFTNGP11.phx.gbl...
I am passing an xml data file to a server control and need to sort the
data. The data has three levels(tables).
What is the recommended approach to do the sorting ?
(using vb.net and asp.net 2.0)