Changes between Initial Version and Version 2 of Ticket #33304
- Timestamp:
- Nov 19, 2021, 12:42:12 PM (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #33304
- Property Owner changed from to
-
Ticket #33304 – Description
initial v2 9 9 {{{#!python 10 10 class OrderBy(ExpressionList): 11 template = 'ORDER BY %(expressions) '11 template = 'ORDER BY %(expressions)s' 12 12 13 13 def __init__(self, *expressions, *extra): 14 14 expressions = [ 15 (Sort(F( o[1:]), descending=True) if isinstance(o, str) and o[0] == '-' else o)16 for oin expressions15 (Sort(F(expr[1:]), descending=True) if isinstance(expr, str) and expr[0] == '-' else expr) 16 for expr in expressions 17 17 ] 18 18 super().__init__(*expressions, **extra)