Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.

Timeline for angular ng-repeat in reverse

Current License: CC BY-SA 3.0

18 events
when toggle format what by license comment
Mar 11, 2016 at 13:24 history edited Dmitry Gonchar CC BY-SA 3.0
added 2 characters in body
Jun 30, 2015 at 16:54 comment added David The fiddle doesn't work anymore, also doesnt work in 1.4.0
May 28, 2015 at 9:00 comment added Dmitry Gonchar @alevkon True. But it works if you specify the field ('+id', '-id' f.e.). Maybe this is a bug in Angular, that it does not work with normal order if you do not specify a field? I took this method from the docs (link is in the answer), so I was surprised as well as you. Anyway, the question was how to reverse an array.
May 26, 2015 at 18:06 comment added alevkon Dmitry, something is still wrong in your jsfiddle. Now, when I use orderBy:'+':false or even | orderBy:'+', I still got a reverse order.
Apr 18, 2015 at 12:54 history edited Dmitry Gonchar CC BY-SA 3.0
added 30 characters in body
Apr 17, 2015 at 13:53 comment added Cody Dmitry, thx for the Fiddle -- I'll have to investigate further why my code was having issues. Thx for all your input!
Apr 16, 2015 at 19:09 history edited Dmitry Gonchar CC BY-SA 3.0
added 49 characters in body
Apr 16, 2015 at 18:55 comment added Dmitry Gonchar @Cody Sorry for the late answer. Here you go - a working example with angular v1.3.5 jsfiddle.net/dmitry_gonchar/L98foxhm/1. Probably the problem was in another place.
Jan 2, 2015 at 20:19 comment added Cody Not working for me (v1.3.5). Tried orderBy:'+':true, orderBy:'-':true, orderBy:'-':false, orderBy:'+':false :(
Dec 2, 2014 at 12:19 comment added Dmitry Gonchar I have used 1.3.4 version personally - it worked perfectly there.
Dec 2, 2014 at 12:13 comment added Dmitry Gonchar @mikermcneil Thanks for the comment! According to the same documentation it should work starting from the v1.3.0-rc.5 (rc.5 docs vs rc.4 docs). I have updated the answer
Dec 2, 2014 at 12:12 history edited Dmitry Gonchar CC BY-SA 3.0
added 7 characters in body
Nov 30, 2014 at 18:08 comment added mikermcneil Thanks for the tip! As a heads up for anyone else reading this, looks like this doesn't work in rc4 (v1.3.0-rc.4). If anyone gets a chance to try it in the new release, let us know!
Oct 29, 2014 at 16:49 history edited Dmitry Gonchar CC BY-SA 3.0
added 52 characters in body
Oct 29, 2014 at 16:46 history undeleted Dmitry Gonchar
Oct 29, 2014 at 16:36 history deleted Dmitry Gonchar via Vote
Oct 29, 2014 at 16:32 history edited Dmitry Gonchar CC BY-SA 3.0
added 186 characters in body
Oct 29, 2014 at 16:26 history answered Dmitry Gonchar CC BY-SA 3.0