Array.Sort(SortMethod As Delegate)
Jean-Luc Arnaud <jean-luc-E/[email protected]> Mon, 6 Aug 2018 11:39:36 +0200
| Newsgroups | gmane.comp.lang.realbasic.user |
|---|---|
| Organization | Centre Direct du Multimédia |
| Message-ID | <[email protected]> |
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 -- Jean-Luc Arnaud