MindFusion.Charting for JavaScript Programmer's Guide
IEnumerable.reverse Method
See Also
Collapse All Expand All Language Filter: All Language Filter: Multiple Language Filter: None Language Filter: C# Language Filter: Visual Basic Language Filter: Java Language Filter: JavaScript Language Filter: C++ Language Filter: XAML

C#
Visual Basic
Java
JavaScript
C++
XAML

Gets the collection as an array in reverse order.

Namespace: MindFusion.Common.Collections
File: IEnumerable.js

## Syntax

JavaScript Copy Code
function reverse ()

### Return Value

Type: Array
Array. The underlying array data structure of the collection in reverse order.

## Example

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();

## See Also

IEnumerable Members
IEnumerable Class
MindFusion.Common.Collections Namespace