The normal syntax for using tsort to sort a ul would be:
$('ul>li').tsort();
I have the ul as a variable from code similar to:
var myul=$('#mydiv').find('ul');
How can I use the myul variable later in my code with tsort?
Note that I have simplified the details a lot here, suffice to say that it would not be easy to identify the ul without using the variable when I am ready to tsort, so I am wondering if I can get to it this way round instead.
/
in jQuery?](http://stackoverflow.com/questions/304396/what-is-the-easiest-way-to-order-a-ul-ol-in-jquery)
– user1477388 Jan 07 '14 at 22:14