Re: Sorting arrays nightmare
Re: Sorting arrays nightmare
- Subject: Re: Sorting arrays nightmare
- From: Louis Demers <email@hidden>
- Date: Sun, 20 Feb 2011 21:39:00 -0500
Please note that the sorting on the NSTimestamp seems to work, it's just that the sort on the primary does not when it's in reverse..
Here is the updated output
getttime = 1294686456000 <35474> 2011-01-10 19:07:36 Etc/GMT Q: 1/1
getttime = 1294686456000 <35475> 2011-01-10 19:07:36 Etc/GMT Q: 1/2
getttime = 1295550456000 <35472> 2011-01-20 19:07:36 Etc/GMT Q: 1/3
getttime = 1295550456000 <35473> 2011-01-20 19:07:36 Etc/GMT Q: 1/4
getttime = 1295550456000 <35478> 2011-01-20 19:07:36 Etc/GMT Q: 1/5
getttime = 1296414456000 <35476> 2011-01-30 19:07:36 Etc/GMT Q: 1/6
getttime = 1296414456000 <35477> 2011-01-30 19:07:36 Etc/GMT Q: 1/7
latest before 2011-01-25 19:07:36 Etc/GMT getttime = 1295550456000 <35472> 2011-01-20 19:07:36 Etc/GMT Q: 1/3
Thanks for feedback
On 2011-02-20, at 18:11 , Q wrote:
>
> On 21/02/2011, at 6:01 AM, Louis Demers wrote:
> ....
>>
>> Here is sample debug output when enumerating in chronological order <> are primary keys
>>
>> <35474> 2011-01-10 19:07:36 Etc/GMT Q: 1/1
>> <35475> 2011-01-10 19:07:36 Etc/GMT Q: 1/2
>> <35472> 2011-01-20 19:07:36 Etc/GMT Q: 1/3
>> <35473> 2011-01-20 19:07:36 Etc/GMT Q: 1/4
>> <35478> 2011-01-20 19:07:36 Etc/GMT Q: 1/5
>> <35476> 2011-01-30 19:07:36 Etc/GMT Q: 1/6
>> <35477> 2011-01-30 19:07:36 Etc/GMT Q: 1/7
>>
>> and if I print the latest
>>
>> latest before 2011-01-25 19:07:36 Etc/GMT <35472>2011-01-20 19:07:36 Etc/GMT Q: 1/3
>
> Try rerunning these two operations but print out the timestamp values using NSTimestamp.getTime() at well.
>
> --
> Seeya...Q
>
> Quinton Dolan - email@hidden
> Gold Coast, QLD, Australia (GMT+10)
>
>
>
>
Louis Demers eng.
www.obzerv.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden