Client side sorting using Angular.js