- From: Garrett Smith <dhtmlkitchen@gmail.com>
- Date: Thu, 28 Jul 2011 20:44:17 -0700
- To: Jonas Sicking <jonas@sicking.cc>
- Cc: Allen Wirfs-Brock <allen@wirfs-brock.com>, Alex Russell <slightlyoff@google.com>, public-script-coord@w3.org, Brendan Eich <brendan@mozilla.com>, Cameron McCormack <cam@mcc.id.au>
On 7/28/11, Garrett Smith <dhtmlkitchen@gmail.com> wrote: [...] > var kids = ul.children; Correction kids = arraySlice(ul.children); > arraySort(kids, byLastName); > ul.replaceChildNodes(kids); > > Or for the one line wonderers: > ul.replaceChildNodes(arraySort(ul.children, byLastName)); > Correction: ul.replaceChildNodes(arraySort(arraySlice(ul.children), byLastName)); -- Garrett
Received on Friday, 29 July 2011 03:44:52 UTC