I know how or I thought I knew how sort worked in javascript. I know that by returning a-b, my array will be sorted ascending order.
However what is happening with this code, why do I not get the array in ascening order, instead I get the following
var q = [1,2,3,4,5,6]
q.sort((a,b)=>{return -1});
[6, 5, 4, 3, 2, 1]