I have an array of objects, each object contains the following properties:
comments:""
id:1
inProgress:false
jobDescription:null
lastUpdateDate:"07/08/2016"
lastUpdatedByUser:"[email protected]"
product:"Chicken"
status:Object
templateName:"Standard Template"
uploadDate:"07/08/2016 10:36:01"
I need a function in angular that I can loop through the entire list and sort through the uploadDate and have the most recent first, etc.
I tried using this but it did not work:
vm.uploads = $filter('orderBy')(vm.uploads, vm.uploads[0].uploadDate, reverse);