*Thanks a lot Robert for your important note*

*but please why you use filter here and sorry can you explain filter code 
please ?*

*i try it without filter and it works as i need:*


*                item.MyDate = new Date(item.MyDate)                var 
month = item.MyDate.getMonth();                var year = 
item.MyDate.getFullYear();                dataByMonth[year + '-' + month] = 
dataByMonth[year + '-' + month] || [];                dataByMonth[year + 
'-' + month].push(item);may be because i have set order by in my C# 
controller as:*



*        public IEnumerable<Test> Get()        {            return 
listOfOrders.OrderBy(i => i.MyDate).ThenBy(i => i.ID);        }*
On Saturday, June 6, 2015 at 8:06:32 PM UTC+2, Robert STAICU wrote:
>
> Cause you helped him:D
>
> Also this should be an update to your strategy Ahmed. If you have 3 
> records from Jan 2015 and 2 from Jan 2016 you will have 5 records from Jan. 
> I think you'll need to distinguise year also.
> http://plnkr.co/edit/bObFZarT4eKqHxJrusAq?p=preview
>
> I only added one filter that will order your records. You can 
> change orderObjectBy: 'MyDate': true from true to false to order them. Have 
> a nice day
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to