Re: [Pharo-users] selectAllSortBy: usage

2017-01-16 Thread Sabine Manaa
Hi Asbath, 1.) the code you have sent looks like there is a blank between # and date_actu. There should be no blank. 2.) You use the method selectAllSortBy: and not sortBy: I tried your code with my classes (with mongodb) and works like this: RKAPerson selectAllSortBy: {#date_actu-> 1. #heure

[Pharo-users] selectAllSortBy: usage

2017-01-14 Thread Asbath Sama biyalou
Hi everybody I have a small problem with the selectAllSortBy: method When I use it Actualite selectAllSortBy: {# date_actu-> 1. # heure_actu-> 1} asDictionary. I have a MessageUnderstood Set (class) >> sortBy: I searched the whole system to find sortBy: but in vain. I do not know how to do it any

Re: [Pharo-users] selectAllSortBy: usage

2017-01-04 Thread Asbath Sama biyalou via Pharo-users
--- Begin Message --- Thanks Norbert. But I get MessageNotUnderstood Set>>sortBy: Actualite selectAllSortBy: {'date_actu'->1. 'hour_actu'->1} asDictionary. Have you an Idea on that. On 04/01/2017 08:34, Norbert Hartl wrote: > Try > > selectAllSortBy: { >'date' -> 1 . >'time' -> 1 } asD

Re: [Pharo-users] selectAllSortBy: usage

2017-01-03 Thread Norbert Hartl
Try selectAllSortBy: { 'date' -> 1 . 'time' -> 1 } asDictionary where 1 means ascending and -1 means descending Norbert > Am 03.01.2017 um 19:56 schrieb Asbath Sama biyalou : > > Hi everybody. I have an object and I want to select all of them sorting > them by date (Date) and hour(Time).

[Pharo-users] selectAllSortBy: usage

2017-01-03 Thread Asbath Sama biyalou via Pharo-users
--- Begin Message --- Hi everybody. I have an object and I want to select all of them sorting them by date (Date) and hour(Time). But I don't know to tell that condition to selectAllSortBy: I tried some things but no result. I am using Voyage with mongoDB. Thanks Asbath --- End Message ---