diff options
author | Lisandro Lorea <lisandrolorea@gmail.com> | 2022-01-15 20:07:01 -0300 |
---|---|---|
committer | Lisandro Lorea <lisandrolorea@gmail.com> | 2022-01-17 15:11:50 -0300 |
commit | 176a9c738fed0ed139d6971c089157bfc80b30f9 (patch) | |
tree | e07e19e0a4b0d16aedeecc86b39f79c2b64e8ae5 /editor/SCsub | |
parent | 324dca57af03df66b6314cc29f46f8ebb4ec59b2 (diff) |
Give example of one-liner for Array natural sort
The documentation for the sort method warns the user that it doesn't do natural sort but fails to provide a solution when it's just a one liner thanks to String.naturalnocasecmp_to() and lambda support
This suggests exactly the same algorithm as used by the filesystem dock for file sorting.
Co-authored-by: Hugo Locurcio <hugo.locurcio@hugo.pro>
Diffstat (limited to 'editor/SCsub')
0 files changed, 0 insertions, 0 deletions