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 trialJonas Laberg
2,365 PointsTask 1 no longer passing after trying to do task 2
Although the line responding to Task 1 has not been changed, I get the above error feedback as I try to check task 2. Please help.
4 Answers
nnuxiragwh
10,345 PointsHi Jonas,
You did not provide any code so it is difficult to tell what might be causing the error.
I can give you the solution: saying2.sort( function( a, b ){ return a.length - b.length; // ASC -> a - b; DESC -> b - a } );
and you can read more about it here: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort
Robert Marczak
12,358 PointsJust have sorted same problem, Tomasz gave you right solution, I had same error feedback due to some coding errors. Check your code first for any missing letters or symbols.
nnuxiragwh
10,345 PointsHi Robert, it's nice to see some of my countrymen on TeamTreehouse, keep up the good work.
Jonas Laberg
2,365 PointsThanks for your response, Tomasz. I got it right, finally!