please can you what does return -1 and return 1 means here and does is work : <p>I want to figure out what return -1 and return 1 did in following code
<a href="https://www.w3schools.com/js/tryit.asp?filename=tryjs_array_sort_object2" rel="nofollow noreferrer">https://www.w3schools.com/js/tryit.asp?filename=tryjs_array_sort_object2</a></p>
