Gets the collection as an array in reverse order.
Namespace: MindFusion.Common.Collections
File: IEnumerable.js
JavaScript Copy Code |
---|
function reverse () |
Array. The underlying array data structure of the collection in reverse order.
The following code checks if the first item in the list of items in a ListView starts with 'z' and if yes, reverses the order of the items:
JavaScript Copy Code |
---|
if (listView.items().item(0).startsWith("z", 0)) listView.items().reverse(); |