W3C home > Mailing lists > Public > www-dom@w3.org > January to March 2001

Re: nodeList sort

From: Gareth Reakes <gareth@decisionsoft.com>
Date: Wed, 17 Jan 2001 20:44:25 +0000 (GMT)
To: Michael Ryan Bannon <mrbannon@student.math.uwaterloo.ca>
cc: www-dom@w3.org
Message-ID: <Pine.LNX.4.21.0101172041470.16454-100000@tugela.dsl.net>
Hello Ryan,
	we have a couple of interns from Waterloo at the moment here in
	The is no DOM call to sort a list based on an attribute, but the
code would not be hard to write. You dont have to create a new document,
just a new Nodelist. Although it may be easier to manipulate in document
form. If you are having troublr then give me a private mail.


On Wed, 17 Jan 2001, Michael Ryan Bannon wrote:

> Hello all,
> My name is Ryan.  I'm writing from the University of Waterloo (Canada)
> and am new to the list.
> Small-time nodeList question: is there an easy way to sort items of a
> nodeList based on a comparable attribute?  Or is it just a matter of
> creating a new tree and inserting sorted subtrees manually?
> Thanks,
> Ryan
Received on Wednesday, 17 January 2001 15:44:29 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 10:46:07 UTC