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

help

In the Animal Shelter app, we've added a property to the kitten objects called cutenessRating. Make a KittensController that sorts the kittens by their cuteness by default.

code:

AnimalShelter.KittensController = Ember.Controller.extend {{
  sortProperties: ['cuteness'] 
    actions: {
      sortByCuteness: function() {
        this.set('sortProperties',['cuteness']);
      }
    }
});

http://teamtreehouse.com/library/emberjs/models/challenge-objectcontroller-and-arraycontroller

Dave McFarland
Dave McFarland
Treehouse Teacher

Hi Lyric Abbott

It really helps to format your code correctly. I've mentioned this to you on several occasions, You can learn how to do that here: https://teamtreehouse.com/forum/posting-code-to-the-forum

The other students, forum moderators and teachers at Treehouse spend a lot of time on the forums helping students like yourself who need help. In order to respect their time you should:

  1. Format your code so that it's easy to read.
  2. Spend time with the course videos, practicing in workspaces and spending time trying out the code challenges before posting to the forums.
  3. Ask questions that show where you are having trouble. In this case, it looks like you are asking for us to give you the answer, instead of trying to figure it out yourself.
  4. Provide descriptive forum titles. "Help" doesn't tell us anything about what problems you are having.