I have an array with objects that contain titles and dates.
[{
title: 'Some title'
date: '12.00 PM 17/10/2014'
},
...
]
I need to sort that values by date and alphabetically in the same time, the result should look like follows:
1.00 PM - Btitle
1.00 PM - Bztitle
1.00 PM - Ctitle
3.00 PM - Atitle
3.00 PM - Btitle
Should I create additional arrays to remember state etc? Or maybe it's possible to do within single sort
method.