On Thu, Jul 2, 2020 at 11:46 AM Sean P. DeNigris <s...@clipperadams.com> wrote:
>
> Sven Van Caekenberghe-2 wrote
> > there is now basic support for SortCollections using SortFunctions.
>
> Cool! This would be great to have in Fuel as well. There is a slow and
> steady stream of users running into trouble trying to serialize blocks
> (whatever the library) due primarily to sorted collections.

Wouldn't that work out of the box with Fuel?

A SortFunction is a simple object, and even a ChainedSortFunction is
the same. So if you have:

#(4 2 2 1) asSortedCollection: #yourself ascending

You end up with a SortedCollection without any blocks, because its
sortBlock is actually a SortFunction.

Regards!

Esteban A. Maringolo

Reply via email to