[Newbies] How to doubble sort a collection
Louis LaBrunda
Lou at Keystone-Software.com
Wed Feb 4 16:32:07 UTC 2015
Hi Raymond,
Try:
^notes sorted:[:a :b | (a date > b date) | ((a date = b date) & (a date
temps > b date temps))].
Lou
On Wed, 04 Feb 2015 10:34:48 -0500, Raymond Asselin <jgr.asselin at me.com>
wrote:
>I have this kind of sorting on anOrderedCollection
>
>BlocNotes >>sortedNotes
> ^notes sorted:[:a :b | a date > b date]
>
>This sort my notes on date but I want them sort by date AND inside a date by hours and I don't khow how to do this.
>
>Some insights?
>
>aNote = 'med com date temps' instancesVariables what I call hours = temps witch is a number like 2123 for 21h23
>
>Some insights?
-----------------------------------------------------------
Louis LaBrunda
Keystone Software Corp.
SkypeMe callto://PhotonDemon
mailto:Lou at Keystone-Software.com http://www.Keystone-Software.com
More information about the Beginners
mailing list