> > 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 >
- Re: [Pharo-dev] about Sort... Thierry Goubier
- Re: [Pharo-dev] about Sort... Denis Kudriashov
- Re: [Pharo-dev] about Sort... Thierry Goubier
- Re: [Pharo-dev] about Sort... Denis Kudriashov
- Re: [Pharo-dev] about Sort... Thierry Goubier
- Re: [Pharo-dev] about Sort... Norbert Hartl
- Re: [Pharo-dev] about Sort... Nicolas Cellier
- Re: [Pharo-dev] about Sort... Denis Kudriashov
- Re: [Pharo-dev] about Sort... Sven Van Caekenberghe
- Re: [Pharo-dev] about Sort... Todd Blanchard
- Re: [Pharo-dev] about SortFunctions Stephane Ducasse
- Re: [Pharo-dev] about SortFunctions Stephane Ducasse
- Re: [Pharo-dev] about SortFunctions Nicolas Cellier
- Re: [Pharo-dev] about SortFunctions Denis Kudriashov
- Re: [Pharo-dev] about SortFunctions Nicolas Cellier
- Re: [Pharo-dev] about SortFunctions Denis Kudriashov
- Re: [Pharo-dev] about SortFunctions Nicolas Cellier
- Re: [Pharo-dev] about SortFunctions Denis Kudriashov
- Re: [Pharo-dev] about SortFunctions Denis Kudriashov
- Re: [Pharo-dev] about SortFunctions Damien Pollet
- Re: [Pharo-dev] about SortFunc... Damien Pollet
