orderBy (filter in module ng )

Description

Orders a specified array by the expression predicate.

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

Usage

orderBy(array, expression[, reverse]);

Parameters

Returns

{Array}

Sorted copy of the source array.

Example

Demo Source Code







Demo Source Code