Solved

Sorting in Angularjs

Posted on 2016-10-30
1
36 Views
Last Modified: 2016-11-05
How do we sort a table in angularjs
0
Comment
Question by:Member_2_7967608
1 Comment
 
LVL 27

Accepted Solution

by:
BigRat earned 500 total points
ID: 41866778
You can use a filter, like here which uses the orderBy clause, or one uses a grid (and there are lots of them) which provides the sorting by clicking the column header, or you can make one yourself like this one.

Personally I wouldn't reinvent the wheel and use a grid or table component like ng-grid
0

Featured Post

Webinar: Aligning, Automating, Winning

Join Dan Russo, Senior Manager of Operations Intelligence, for an in-depth discussion on how Dealertrack, leading provider of integrated digital solutions for the automotive industry, transformed their DevOps processes to increase collaboration and move with greater velocity.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Angular grid filter 1 53
Pass data between components in angular 1.5 10 229
Angular 2 and server connection 4 58
convert Systemjs to Webpack 3 28
You have this traditional web application that refreshes the whole page each time you navigate and you think it's a good time to convert it to a Single-Page approach. What should you know in advance? Read on, I'll guide you through it.
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question