Sorts the underlying array.
Namespace: MindFusion.Common.Collections
File: IEnumerable.js
JavaScript Copy Code |
---|
function sort ([compareFn]) |
function. The comparing function.
The following code sorts a List with product instances based on the price of each one:
JavaScript Copy Code |
---|
var product1 = new Object(); var product2 = new Object(); productList.addRange([product1, product2]);
|