4d / docs

Products Documentation
Creative Commons Attribution 4.0 International
6 stars 19 forks source link

Comment on API/CollectionClass.md (20-R3) : example comment #313

Closed e-marchand closed 8 months ago

e-marchand commented 8 months ago

Please enter your comment:

https://developer.4d.com/docs/API/CollectionClass/#example-3-4

//["Alain Martin","Jane Doe","John Smith","John Doe"]
//["Lyon France","Eching Germany","Paris France","Berlin Germany"]

must be someting like that

//$name=["Alain Martin","Jane Doe","John Smith","John Doe"]
//$address=["Lyon France","Eching Germany","Paris France","Berlin Germany"]

but not really, $address contains object, not string? maybe exemple not correct

I launch it and have some errors "compare function doesn't provide consistent results"

arnaud4d commented 8 months ago

ok it's fixed thanks! Correct code is $name.multiSort(Formula($1.value.firstname<$1.value2.firstname); [$address])