02-22-2026, 09:24 AM
I have an array with positive values and want to sort the array from negative to positive in ascending order but the negative values in descending order
suppose I have [-1.65068012389, -0.524647623275, 1.65068012389, 0.524647623275]
I want [ -0.524647623275, -1.65068012389 , 0.524647623275, 1.65068012389]
suppose I have [-1.65068012389, -0.524647623275, 1.65068012389, 0.524647623275]
I want [ -0.524647623275, -1.65068012389 , 0.524647623275, 1.65068012389]

