#1573 NORM Trial-2: specify sorting order in the datastore

Zarro Boogs per Child bugtracker at laptop.org
Tue Jun 5 01:11:58 EDT 2007


#1573: specify sorting order in the datastore
--------------------------+-------------------------------------------------
  Reporter:  tomeu        |       Owner:  bcsaller
      Type:  enhancement  |      Status:  assigned
  Priority:  normal       |   Milestone:  Trial-2 
 Component:  datastore    |     Version:          
Resolution:               |    Keywords:          
  Verified:  0            |  
--------------------------+-------------------------------------------------
Changes (by bcsaller):

  * status:  new => assigned

Comment:

 Replying to [comment:2 lferre]:
 > Replying to [ticket:1573 tomeu]:
 > > We need to extend the 'order-by' query parameter with the possibility
 of specifying the order (ascending/descending). Perhaps something like
 {'order-by': [['mtime', True], ['activity', False]]} ?
 >
 > I suspect you would be better off keeping SQL like formating, with the
 query looking like:
 >      {'order-by': [['mtime', 'descending'], ['activity', 'ascending']]}
 >

 the current code I have takes order_by="+mtime,-activity" as its format.
 This still isn't working well because of the somewhat abstract way
 properties were implemented so I haven't pushed it yet, but thats the
 plan.

-- 
Ticket URL: <http://dev.laptop.org/ticket/1573#comment:3>
One Laptop Per Child <http://laptop.org/>



More information about the Bugs mailing list