diff options
author | Robert Speicher <rspeicher@gmail.com> | 2014-04-14 20:39:24 +0400 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2014-04-14 20:40:27 +0400 |
commit | c803e78fd0de5e3614cf5881c9688e4c7d40641b (patch) | |
tree | fdc8d12197313a9ec85b9078b1c2a6711355482a /app/controllers/projects/tags_controller.rb | |
parent | 884390de20532fc78dd1b78efafe9a5acc534c6d (diff) |
Use VersionSorter on the Project > Tags page
Diffstat (limited to 'app/controllers/projects/tags_controller.rb')
-rw-r--r-- | app/controllers/projects/tags_controller.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/controllers/projects/tags_controller.rb b/app/controllers/projects/tags_controller.rb index 818c5d971e9..0b99165bf62 100644 --- a/app/controllers/projects/tags_controller.rb +++ b/app/controllers/projects/tags_controller.rb @@ -8,7 +8,8 @@ class Projects::TagsController < Projects::ApplicationController before_filter :authorize_admin_project!, only: [:destroy] def index - @tags = Kaminari.paginate_array(@repository.tags.reverse).page(params[:page]).per(30) + sorted = VersionSorter.rsort(@repository.tag_names) + @tags = Kaminari.paginate_array(sorted).page(params[:page]).per(30) end def create |