When I console.log the details
variable, I get the following results:
details:{
1:{
2015-2-10 : 0
2015-2-11 : 0
2015-2-12 : 0
2015-2-13 : 0
2015-2-14 : 0
2015-2-15 : 0
2015-2-16 : 0
2015-2-17 : 0
2015-2-18 : 0
2015-2-19 : 0
2015-2-2 : 0
2015-2-20 : 0
2015-2-21 : 0
2015-2-22 : 0
2015-2-23 : 0
2015-2-24 : 0
2015-2-25 : 0
2015-2-26 : 0
2015-2-27 : 1
2015-2-28 : 1
2015-2-3 : 0
2015-2-4 : 0
2015-2-5 : 0
2015-2-6 : 0
2015-2-7 : 0
2015-2-8 : 0
2015-2-9 : 0
2015-3-1 : 0
}
}
I want to do is to display the dates with ascending order. So the output will become:
details:{
1:{
2015-2-2 : 0
2015-2-3 : 0
2015-2-4 : 0
2015-2-5 : 0
2015-2-6 : 0
2015-2-7 : 0
2015-2-8 : 0
2015-2-9 : 0
2015-2-10 : 0
2015-2-11 : 0
2015-2-12 : 0
2015-2-13 : 0
2015-2-14 : 0
2015-2-15 : 0
2015-2-16 : 0
2015-2-17 : 0
2015-2-18 : 0
2015-2-19 : 0
2015-2-20 : 0
2015-2-21 : 0
2015-2-22 : 0
2015-2-23 : 0
2015-2-24 : 0
2015-2-25 : 0
2015-2-26 : 0
2015-2-27 : 1
2015-2-28 : 1
2015-3-1 : 0
}
}
My question: Is it possible to do it?
my plunker is http://plnkr.co/edit/dQO3D1Omc0o7ZH9TfeUZ?p=preview Thanks in advance!