Sort by Price
items has columns name and price. Return a list of the names ordered by price from highest to lowest. Items with the same price keep the order in which they appear.
Example 1
items {"name":["a","b","c"],"price":[5,9,5]}
returns ["b","a","c"]
b is the most expensive; a stays before c.
Constraints
- The tables are small
Write it in your browser, against the clock. The model solution, stepped through line by line, comes after.