Ed Leafe wrote:
> On Feb 29, 2008, at 7:59 PM, Paul McNett wrote:
>
>> Removed the raising of the NoRecordsException when sorting a cursor
>> with no
>> records. Changed the name of an argument from the reserved word
>> 'dir' to
>> 'ord', which matches the dBizobj.sort() signature.
>
> No problem with any of these.
I figured, which is why I didn't wait for comment before committing.
>> TODO: determine if it is a good thing to have the sort order cycle
>> between
>> ASC, DESC, and no sort by default. I think it should default to ASC.
>
>
> I don't understand what you mean. The first time that sort() is
> called, it sorts it to ASC, since its current state is 'no sort'. So
> when the user clicks on a column several times:
>
> 1st: starts: None -> result: ASC
> 2nd: starts: ASC -> result: DESC
> 3rd: starts: DESC -> result: None
>
> How do you want that behavior to change?
I think that that is good behavior from a UI perspective, from the grid.
What I'm contesting is when other code calls:
biz.sort("myfield")
biz.sort("myfield")
I think it should default to "ASC" instead of changing the sort order
every time.
IOW, move the cycling up the chain to the grid, where there's actually a
UI involved where this behavior makes sense. As it stands, I need to
change my calls from my bizobjs to:
biz.sort("myfield", "ASC")
for them to be consistent each time I sort.
Paul
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/dabo-dev/[EMAIL PROTECTED]