I want to sort columns in ng-repeat in AngularJs.
I have something like this:
<th class="cl_sort_init" ng-click="predicate='EstimatedCloseDate';
reverse=!reverse" ng-class="{'cl_sort_desc':
predicate=='EstimatedCloseDate'&&reverse==true, 'cl_sort_asc':
predicate=='EstimatedCloseDate'&&reverse==false}">Close Date</th>
However EstimatedCloseDate is a string. Hence it doesnt work the way it should. How do I make it work as dates just for this column. Other columns are strings and they work just fine.
Any ideas and suggestions !!!