Javascript Sort Array Without Using Functional Strategies To Increase