Still a novice here with no programming skills. Need help with sorting a list. I have six factors that the user ranks in decreasing order of importance. I store their rank in the database. I just want to then, in a new page, show the list sorted in the order in which they ranked. Also, of the six items , if they ranked only three, I would like to only show those three and not the others that were not ranked. Seems simple enough but I am not able to figure this out. Any help would be much appreciated. So, for example, let’s say they are looking for a house. I ask them to rank what’s important (price, bedrooms, square footage, school district, etc). They provide their ranks. I want to show only those factors they ranked in the order in which they ranked them.
Thanks in advance!