Java Sort Array Without Using Functional Assessment