View Single Post
shauli
Member
Join Date: Jun 2018
Old 09-05-2018 , 11:52   Re: Questions and suggestions about ArrayFindString and sorting natives
Reply With Quote #3

Quote:
Originally Posted by HamletEagle View Post
SortCustom1D(and other natives probably) uses qsort to perform the actual sorting.
http://www.cplusplus.com/reference/cstdlib/qsort/
Documentation says the order of equal elements is undefined, this is why.
Thanks, that explains it.
So basically if i'll do 'return 1' for equal items it will work as I expected.
shauli is offline