tree session sort with jquery