Jean-Luc Arnaud
2018-08-06 09:39:36 UTC
Hi all,
I'd like to sort an array of FolderItems using a Sort Delegate method
based on their NativePath property.
But the Language Reference says:
"The delegate function must not mutate or examine at the contents of the
array while it is being sorted. Doing so will result in undefined behavior."
Is getting the NativePath of a FolderItem item in array considered as
examining the content of this array?
Is so, how would you sort such an array on NativePath criteria?
TIA
I'd like to sort an array of FolderItems using a Sort Delegate method
based on their NativePath property.
But the Language Reference says:
"The delegate function must not mutate or examine at the contents of the
array while it is being sorted. Doing so will result in undefined behavior."
Is getting the NativePath of a FolderItem item in array considered as
examining the content of this array?
Is so, how would you sort such an array on NativePath criteria?
TIA
--
Jean-Luc Arnaud
Jean-Luc Arnaud