Commit 30d33c424b143ae8ece90a0953e87c7efc4f6127
1 parent
e61cec11
Exists in
staging
and in
7 other branches
force de comments order
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
lib/noosfero/api/helpers.rb
... | ... | @@ -224,7 +224,7 @@ require 'grape' |
224 | 224 | |
225 | 225 | objects = object.send(method) |
226 | 226 | objects = by_reference(objects, params) |
227 | - objects = objects.where(conditions).limit(limit).order(order) | |
227 | + objects = objects.where(conditions).limit(limit).reorder(order) | |
228 | 228 | |
229 | 229 | objects |
230 | 230 | end | ... | ... |