Sort Array Without Using Sortedmap In Java