Commit 8d6a97c802a241c47c5704d7a694265c31deb091
Exists in
theme-brasil-digital-from-staging
and in
9 other branches
Merge branch 'staging' into production
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 | ... | ... |