Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how to sort negative and positive values ?
#1
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]
Reply


Messages In This Thread
how to sort negative and positive values ? - by Jack - 02-22-2026, 09:24 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Question on a Quick Sort routine Dimster 4 1,009 09-25-2023, 12:29 PM
Last Post: bplus
  Having trouble Windows command line SORT via SHELL GTC 19 4,367 08-26-2023, 04:19 AM
Last Post: GTC

Forum Jump:


Users browsing this thread: 1 Guest(s)