Uncaught ReferenceError: function is not defined at HTMLSelectElement.onchange
I’m displaying the movie data that I’ve brought in open api in card format. I’d like to newly arrange them in the order of title a-z and highest stars in drop-down format. However, it does not work when I select another item after the initial card is loaded I thought it was a problem with the function, so I used console.log, but the function works fine.