Ed Leafe wrote:
> On Feb 29, 2008, at 8:36 PM, Paul M¢Nett wrote:
>
>> 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.
>
>
> Maybe we should have sortAscending() and sortDescending() methods,
> and have the grid call cycleSort(). This way everything is explicit,
> whether called from the grid or from bizobj code.
How about just sort(), with the ord argument one of:
"ASC"
"DESC"
"CYCLE"
None
None meaning the natural order; "ASC" being default. That seems to me
like reasonable and expected base behavior, and the grid can explicitly
call sort(fld, "CYCLE"), which is definitely reasonable behavior from
the grid UI level.
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]