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 nicolas.cellier.aka.n...@gmail.com: 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

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

2014-08-02 Thread Eliot Miranda
On Aug 1, 2014, at 10:50 AM, Nicolas Cellier nicolas.cellier.aka.n...@gmail.com wrote: 2014-08-01 16:50 GMT+02:00 Henrik Johansen henrik.s.johan...@veloxit.no: On 01 Aug 2014, at 4:47 , Mariano Martinez Peck marianop...@gmail.com wrote: On Fri, Aug 1, 2014 at 11:31 AM,

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 henrik.s.johan...@veloxit.no: On 01 Aug 2014, at 4:47 , Mariano Martinez Peck marianop...@gmail.com 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

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:

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 emaring...@gmail.com 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:

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 marianop...@gmail.com 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-helper-td4770613.html Something like:

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

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 marianop...@gmail.com 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-helper-td4770613.html Something like:

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 henrik.s.johan...@veloxit.no wrote: On 01 Aug 2014, at 4:47 , Mariano Martinez Peck marianop...@gmail.com 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

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 henrik.s.johan...@veloxit.no: On 01 Aug 2014, at 4:47 , Mariano Martinez Peck marianop...@gmail.com 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

[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 ]

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

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 steph...@free.fr 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