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 trialMUZ140057 Dumisani Nyamusa
8,029 Pointsmeet peewee
Finally, make a variable named sorted_challenges that is all of the Challenge records, ordered by the steps attribute on the model. The order should be ascending, which is the default direction
from models import Challenge
all_challenges = Challenge.select()
Challenge.create(language = 'Ruby', name = 'Booleans')
sorted_challenges =
2 Answers
mrben
8,068 PointsThe answer is about 6:30m into the video that precedes this quiz.
You can also see in the Teacher's Notes information on how to sort records as well as in the peewee documentation.
Hope that helps!
michaelangelo owildeberry
18,173 Pointshi =) what more could I be missing from my code? ... sorted_challenges = Challenge.select().order_by(Challenge.created_date())
MUZ140057 Dumisani Nyamusa
8,029 PointsMUZ140057 Dumisani Nyamusa
8,029 Pointsthanks it worked