>
> With current implementation, collatedInFrench would have to use a block
> (thru a CollatorBlockFunction which is a proxy to the block in a
> SortFunction disguise):
>
>     Symbol>>collatedInFrench
>         "interpret self as a property"
>         ^[:a :b | FrenchCollator collate: (self value: a) with: (self value:
> b)]
>
> But IMO SortByPropertyFunction should better feed a reified
> CollatorFunction, or said differently a SortFunction, as Denis said.
>
>     Symbol>>collatedInFrench
>         ^FrenchCollator new onProperty: self
>
>     SortFunction>>onProperty: aValuable
>         ^SortByPropertyFunction sortProperty: aValuable with: self
>
> What do you think?
>
> Nicolas
>

Reply via email to