Commit 98c2d5a5a97d19e4c09976887dc1b99385af275e

Authored by Leandro Santos
2 parents 5d9fcb3b 73fa1c41

Merge branch 'staging' of gitlab.com:participa/noosfero into staging

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,7 +224,7 @@ require 'grape'
224 224
225 objects = object.send(method) 225 objects = object.send(method)
226 objects = by_reference(objects, params) 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 objects 229 objects
230 end 230 end