Link to home
Start Free TrialLog in
Avatar of curiouswebster
curiouswebsterFlag for United States of America

asked on

JavaScript: need to sort an array

I need to sort an array in JavaScript by the listOrder property

        var site = $(userListSites[0]).data('site');

each site object has a listOrder zero based sort index.

I have the code to update those value as the use click buttons to relocate in the list. But now I need to sort that list before recreating the list.

How?

I need LINQ on  JS :)

Thanks
ASKER CERTIFIED SOLUTION
Avatar of mankowitz
mankowitz
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of curiouswebster

ASKER

thanks!