I have a data which contains employment history. I have two fields for my employment dateTo:
yearTo, monthTo
I need to sort the employment history correctly based on the most recent employment dateTo which I can do by
<tr id="employment_history_" ng-repeat="history in candidate.employmentHistory | orderBy : ['-yearTo','monthTo',] | date:['YYYY', 'MMM'] ">
It works correctly. But I have one problem. The field monthTo can also containt a value Present instead of just month date format MMM like JAN, FEB MAR etc.
Question how do I sort this, I understand I have a date format but I want the record which has the monthTo value Present to first on the list?