Changing sort order on the fly

49 views
Skip to first unread message

Matt Welch

unread,
Mar 9, 2011, 12:26:11 PM3/9/11
to jsTree
I've got a tree that I'm sorting by a specific attribute, and that's
working great. What I'm trying to do, though, is let the user choose
his sort parameter, by selecting a radio button. For instance, upon
load, the tree is sorted by the "order" attribute. If a user clicks a
radio button, I'd like to change the sort criteria to "sort by name"
and rerender the tree.

Any input on how I might do this?

Thanks.
Reply all
Reply to author
Forward
0 new messages