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

General Discussion

Sort by Pop up menu

Hi Team Treehouse!

I am working on a website and I need a sort by drop down menu task bar that will list different options to sort by like date, title, etc. I thought this was covered in one of the lessons but I can't seem to find which lesson it was. Any help in directing me to the right video would be much appreciated.

Thanks! -Kelley

1 Answer

Hey Kelley, sorry for the late reply. I don't think sorting data was really covered in any of the website courses (unless it was Ruby which I haven't done). If all the data to be sorted is displayed on one page however, this wouldn't be too bad to do with JavaScript/jQuery since you could just have the data in an array, sort it, and the elements could be moved around in the document.

If you're talking about the actual UI dropdown/taskbar though, I could point you to a variety of resources for ready made components you could refactor.