JavaScript sub-sorting Sorting an array by multiple criteria with vanilla JavaScript | Go Make Things