#How do I sort things by attributes in JavaScript?

1 messages · Page 1 of 1 (latest)

ember dagger
#

Hi. I'm making a website for my favorite car models, but I want viewers to sort by a few different attributes
I want a sort button that the user can click on, to choose between sorting through decades, through attributes (such as pop-up headlights or sedan, suv, etc) and also country of origin.

each car I add to the website will have these attributes so they can be sorted this way. How do I make such a system? any suggestions?

pine robin
ember dagger
#

originally I wanted to have the code sort through everything itself but now I'm realizing that doesn't make any sense

ember dagger
pine robin
#

have you tried anything so far?

ember dagger
#

well Instead of having the code sort through everything I sort of just figured i'd scrap the multi-sortable categories and just break it into decades and countries of origin