Sorry for stupid question, but how do I sort Array in reason/rescript, really? When I type ‘sort’ in the docs I only got some hints like ‘SortArray’, ‘SortArrayInt’, and ‘SortArrayString’ that I’m not familiar with. Isn’t there some Belt.Array.sort
method?
1 Like
There’s Js.Array2.sort
and sortInPlace IIRC, that binds to the regular array sort API in JS. Try that out
1 Like
Or Belt.SortArray.stableSortBy
.
2 Likes
Docs for the suggested methods:
2 Likes