HTML and JavaScript code for implementing a select tag with all possible sorting options for the page without needing to duplicate each collection