Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript Ember.js Models ObjectController and ArrayController

Ember 'sortProperty'

Ember 'sortProperty' is displaying the array in the correct order in Ember Inspector, but the results do not persist to the DOM. Any idea why? I have compared my code line for line and cannot find any discrepancy.

1 Answer

Thomas McCracken
Thomas McCracken
13,591 Points

If I understand your question correctly, I believe the sorting should not persist when you reload the page since it is reading from the store as it is originally. You have to sort each time because the sort does not edit the data.