diff options
| author | Luc Donnet | 2015-06-10 16:17:24 +0200 |
|---|---|---|
| committer | Luc Donnet | 2015-06-10 16:17:24 +0200 |
| commit | 421cbd7e00f3c736b134ea5714352e48a74501a8 (patch) | |
| tree | 4e54f01e9a5b1084bcbad8dd22f10ec0dce5b027 /app/controllers/exports_controller.rb | |
| parent | 8de3f18adc6a8670cfc28d01629e1f3528dc3da8 (diff) | |
| download | chouette-core-421cbd7e00f3c736b134ea5714352e48a74501a8.tar.bz2 | |
Fix order in import export and compliance_checks list with descending order on created_at
Diffstat (limited to 'app/controllers/exports_controller.rb')
| -rw-r--r-- | app/controllers/exports_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/exports_controller.rb b/app/controllers/exports_controller.rb index 80c70902e..d6e9cdf42 100644 --- a/app/controllers/exports_controller.rb +++ b/app/controllers/exports_controller.rb @@ -67,6 +67,6 @@ class ExportsController < ChouetteController end def collection - @exports ||= export_service.all.paginate(:page => params[:page]) + @exports ||= export_service.all.sort_by{ |export| export.created_at }.reverse.paginate(:page => params[:page]) end end |
