Behavior of "SORT M AS N"

Post Reply
smbstarv
Posts: 108
Joined: Wed Nov 27, 2013 3:44 pm
My devices: Ipad 6th gen
Flag: Netherlands
Contact:

Behavior of "SORT M AS N"

Post by smbstarv »

I came across a peculiar behavior of the "SORT M AS N" function.
If M contains mostly equal values, I found that the time to sort is growing rapidly.
E.g. Sorting an Array of 10000 with only 50 non zero numbers takes so long that the program seemingly stalls.
Furthermore you can not stop the sorting then. You have to stop the Smartbasic app itself !

"SORT M TO B" does not show this behavior.

Post Reply