Re: [Pharo-dev] Has someone ever built a "sort block generator"

2014-09-16 Thread Esteban A. Maringolo
Nicolas: 2014-08-01 17:50 GMT-03:00 Nicolas Cellier : >> http://objology.blogspot.no/2010/11/tag-sortfunctions-redux.html >> >> Don’t think anyone’s ported it to Pharo yet though. > +1 > > Note that I have a public experimental port to Pharo in SmalltalkHub that I > already announced once (in > h

Re: [Pharo-dev] Has someone ever built a "sort block generator"

2014-08-02 Thread Norbert Hartl
> Am 01.08.2014 um 16:50 schrieb Henrik Johansen : > > >> On 01 Aug 2014, at 4:47 , Mariano Martinez Peck >> wrote: >> >> >> >> >>> On Fri, Aug 1, 2014 at 11:31 AM, Esteban A. Maringolo >>> wrote: >>> Y asked for the same thing a few days ago in >>> http://forum.world.st/Multiple-sorti

Re: [Pharo-dev] Has someone ever built a "sort block generator"

2014-08-01 Thread Eliot Miranda
On Aug 1, 2014, at 10:50 AM, Nicolas Cellier wrote: > > > > 2014-08-01 16:50 GMT+02:00 Henrik Johansen : >> >> On 01 Aug 2014, at 4:47 , Mariano Martinez Peck >> wrote: >> >>> >>> >>> >>> On Fri, Aug 1, 2014 at 11:31 AM, Esteban A. Maringolo >>> wrote: Y asked for the same th

Re: [Pharo-dev] Has someone ever built a "sort block generator"

2014-08-01 Thread Nicolas Cellier
2014-08-01 16:50 GMT+02:00 Henrik Johansen : > > On 01 Aug 2014, at 4:47 , Mariano Martinez Peck > wrote: > > > > > On Fri, Aug 1, 2014 at 11:31 AM, Esteban A. Maringolo < > emaring...@gmail.com> wrote: > >> Y asked for the same thing a few days ago in >> http://forum.world.st/Multiple-sorting-he

Re: [Pharo-dev] Has someone ever built a "sort block generator"

2014-08-01 Thread Camille Teruel
On 1 août 2014, at 16:50, Henrik Johansen wrote: > > On 01 Aug 2014, at 4:47 , Mariano Martinez Peck wrote: > >> >> >> >> On Fri, Aug 1, 2014 at 11:31 AM, Esteban A. Maringolo >> wrote: >> Y asked for the same thing a few days ago in >> http://forum.world.st/Multiple-sorting-helper-td47

Re: [Pharo-dev] Has someone ever built a "sort block generator"

2014-08-01 Thread Camille Teruel
On 1 août 2014, at 16:47, Mariano Martinez Peck wrote: > > > > On Fri, Aug 1, 2014 at 11:31 AM, Esteban A. Maringolo > wrote: > Y asked for the same thing a few days ago in > http://forum.world.st/Multiple-sorting-helper-td4770613.html > > Something like: > sorter := MultipleSortCriteria

Re: [Pharo-dev] Has someone ever built a "sort block generator"

2014-08-01 Thread p...@highoctane.be
Grids, collections, and sorting/filtering + paging. And xls export. I guess we all have this kind of need in Seaside apps (and/or datatables). Maybe we could have a hangout about these things. I use the MagritteReport thing with some Twitter Bootstrap additions for reports. Is there any best pr

Re: [Pharo-dev] Has someone ever built a "sort block generator"

2014-08-01 Thread Henrik Johansen
On 01 Aug 2014, at 4:47 , Mariano Martinez Peck wrote: > > > > On Fri, Aug 1, 2014 at 11:31 AM, Esteban A. Maringolo > wrote: > Y asked for the same thing a few days ago in > http://forum.world.st/Multiple-sorting-helper-td4770613.html > > Something like: > sorter := MultipleSortCriteria

Re: [Pharo-dev] Has someone ever built a "sort block generator"

2014-08-01 Thread Mariano Martinez Peck
On Fri, Aug 1, 2014 at 11:31 AM, Esteban A. Maringolo wrote: > Y asked for the same thing a few days ago in > http://forum.world.st/Multiple-sorting-helper-td4770613.html > > Something like: > sorter := MultipleSortCriteria new >add: #lastName; >add: [:each | each

Re: [Pharo-dev] Has someone ever built a "sort block generator"

2014-08-01 Thread Esteban A. Maringolo
Y asked for the same thing a few days ago in http://forum.world.st/Multiple-sorting-helper-td4770613.html Something like: sorter := MultipleSortCriteria new add: #lastName; add: [:each | each personalInfo age ] ascending: false. aCollection asSortedCollection: sorter.

Re: [Pharo-dev] Has someone ever built a "sort block generator"

2014-07-31 Thread Damien Cassou
On Thu, Jul 31, 2014 at 10:50 PM, stepharo wrote: > what are you doing? I think Mariano would like something like this: persons sorted: #(lastname firstname birthdate) asSortBlock that would sort by lastname, and if lastnames are equal by firstnames and if both lastnames and firstnames are equ

Re: [Pharo-dev] Has someone ever built a "sort block generator"

2014-07-31 Thread stepharo
Hi mariano what are you doing? because it looks strange to need a sort block generator :). Why cann't filter all the objects that have either fields to nil first? Stef On 31/7/14 19:40, Mariano Martinez Peck wrote: Hi guys, Currently I have some sorting blocks which support "nil" elements (

[Pharo-dev] Has someone ever built a "sort block generator"

2014-07-31 Thread Mariano Martinez Peck
Hi guys, Currently I have some sorting blocks which support "nil" elements (making them go first). So here is a general nil tolerant sort block based on one field: defaultNilTolerantSortBlock: aBlock [ :a :b | a ifNil: [ true ] ifNotNil: [ b ifNil: [ false ] ifNotNil: [ aBlock value: a value: b