const sortedList = inventor.sort((inventor) a > b ? 1; -1);
This is being used to sort a list via year. What i need to know is what happens when two years are the same on my list. How could i add a default or third item to my turnarary function.
would i use the || double pipe(or) then put the last outcome or the double ?? Anyone care to show me the proper formatting for this example.