Hvordan sorterer jeg her!
Jeg henter noget ud fra en XML-fil således:Public sub ExportMember2()
Dim oNodeList, Item
objXML.load(MEMBER_PATH)
Response.Write "<table><tr valign=""middle"">"
Response.Write "<td><img src=""media/print.gif""></td><td><a href=""java script:window.print()"">Print</a><td>"
Response.Write "</tr></table><br>"
Response.Write "<table border=""0"" cellspacing=""2"" cellpadding=""2"">"
Response.Write "<tr>"
Response.Write "<td><b>Navn:</b></td><td><b>E-mail:</b></td><td><b>Telefon:</b></td><td><b>Mobil:</b></td>" & vbCrLf
Response.Write "</tr>"
set oNodeList = objXML.selectNodes("members/member")
for each item in oNodeList
Response.Write "<tr>"
Response.Write "<td>" & item.selectsinglenode("pseudo").text & "</td>"
Response.Write "<td><a href='mailto:" & item.selectsinglenode("email").text & "'>" & item.selectsinglenode("email").text & "</a></td>"
Response.Write "<td>" & item.selectsinglenode("firmphone").text & "</td>"
Response.Write "<td>" & item.selectsinglenode("firmmobil").text & "</td>"
Response.Write "</tr>"
next
Response.Write "</table><br>"
End sub
Men jeg vil gerne sorterer dem efter "pseudo" hvordan gør jeg det?
Fomse:-)