[sqlalchemy] ordering slices of the result

2011-09-02 Thread Eduardo
Hello, I have a query which results (columns id,name) I need to order alphabetically by name. Then I need to take a slice of the results and to keep them ordered: results=somequery.order_by(datab.columns['name'])

Re: [sqlalchemy] ordering slices of the result

2011-09-02 Thread Michael Bayer
Python dictionaries are unordered. On Sep 2, 2011, at 11:25 AM, Eduardo wrote: Hello, I have a query which results (columns id,name) I need to order alphabetically by name. Then I need to take a slice of the results and to keep them ordered: