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
a Directive in AngularJS
form Directive in AngularJS
input Directive in AngularJS
textarea Directive in AngularJS
currency Filter in AngularJS
date Filter in AngularJS
filter Filter in AngularJS
json Filter in AngularJS
limitTo Filter in AngularJS
lowercase Filter in AngularJS
uppercase Filter in AngularJS
number Filter in AngularJS
orderBy Filter in AngularJS