TireSwingSoftware / openassign-server

OpenAssign server intended for use by a separate client via RPC
BSD 3-Clause "New" or "Revised" License
6 stars 2 forks source link

Add ability to order a view result set #140

Closed jc0n closed 12 years ago

jc0n commented 12 years ago

Add an argument, order=None to views which will accept a string or sequence of strings containing column names to order to result. The names can be optionally preceded by a '-' to denote a reversed ordering. The semantics of the API are intended to wrap Django's QuerySet.order_by.

jc0n commented 12 years ago

I'm not going to apply this to ObjectManager.get_filtered since right now all uses of this functionality occur in views.