Adam Dziendziel wrote:
> Hi,
> 
> It seems that sorting of ordering list doesn't work. Attribute
> object.items is an OrderingList:
> 
> object.items.sort(cmp=my_cmp)
> 
> The list is sorted, but the ordering column is not updated. I need to
> call explicitly:
> 
> object.items._reorder()
> 
> Maybe override sort() in OrderingList to invoke self._reorder() after
> sorting?

Sure, makes sense.  reverse() too.  Interested in making a patch for the 
implementation in sqlalchemy/ext/ and add a new test?

-j

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalchemy@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to