File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -129,7 +129,7 @@ def visit_Arel_Nodes_SelectStatementWithOutOffset(o, windowed=false)
129129 core = o . cores . first
130130 projections = core . projections
131131 groups = core . groups
132- orders = o . orders . reverse . uniq . reverse
132+ orders = o . orders . uniq
133133 if windowed
134134 projections = function_select_statement? ( o ) ? projections : projections . map { |x | projection_without_expression ( x ) }
135135 elsif eager_limiting_select_statement? ( o )
@@ -320,7 +320,7 @@ def rowtable_orders(o)
320320 [ table_from_select_statement ( o ) . primary_key . asc ]
321321 else
322322 [ table_from_select_statement ( o ) . primary_key . asc ]
323- end . reverse . uniq . reverse
323+ end . uniq
324324 end
325325
326326 # TODO: We use this for grouping too, maybe make Grouping objects vs SqlLiteral.
You can’t perform that action at this time.
0 commit comments