app/controllers/deposit/collection_controller.rb in killbill-deposit-1.0.1 vs app/controllers/deposit/collection_controller.rb in killbill-deposit-1.0.2
- old
+ new
@@ -108,10 +108,10 @@
json[:error] = error unless error.nil?
pages ||= []
# Until we support server-side sorting
- ordering = ((params[:order] || {})[:'0'] || {})
+ ordering = (params[:order] || {})[:'0'] || {}
ordering_column = (ordering[:column] || 0).to_i
ordering_dir = ordering[:dir] || 'asc'
unless search_key.nil?
pages.sort! do |a, b|
a = data_extractor.call(a, ordering_column)