sort page can/map/sort source tests list.sort(sortfunc) Sorts the instances in the list. var list = new can.List([ { name: 'Justin' }, { name: 'Brian' }, { name: 'Austin' }, { name: 'Mihael' }]) list.comparator = 'name'; list.sort(); //- sorts the list by the name attribute
Sorts the instances in the list.