AngularJS

AngularJS Directives

AngularJS Filters and Elements

AngularJS Tutorials

AngularJS orderBy Filter

AngularJS orderBy Filter

 

 

The orderBy filter is used to allow us to sort an array. Strings are sorted alphabetically and Numbers are sorted numerically by default.

 

Syntax:-

 

{{ array | orderBy : expression : reverse }}

 

Further Explanation:-

 

Value Description
expression The expression is used to determine the order. The expression can be of a type of string, function, or array.
reverse Optional. Set to true if you want to reverse the order of the array.

Code Explanation

All Tutorials related to AngularJS Filters and Elements

All Sections related to AngularJS