Sort An Array Without Using Sortedmap