orderBy (filter in module ng )

Improve this doc

Description

Orders a specified array by the expression predicate.

Note: this function is used to augment the Array type in Angular expressions. See ng.$filter for more informaton about Angular arrays.

Usage

filter:orderBy(array, expression[, reverse]);

Parameters

Returns

{Array}

Sorted copy of the source array.

Example

Source







Demo