Sort An Array In Java Without Using Sortedmap