summaryrefslogtreecommitdiff
path: root/app/helpers/application_helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/helpers/application_helper.rb')
-rw-r--r--app/helpers/application_helper.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index 523c2020747..bdaf6ba8abb 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -94,11 +94,10 @@ module ApplicationHelper
options = [
["Branches", repository.branch_names],
- ["Tags", repository.tag_names]
+ ["Tags", VersionSorter.rsort(repository.tag_names)]
]
- # If reference is commit id -
- # we should add it to branch/tag selectbox
+ # If reference is commit id - we should add it to branch/tag selectbox
if(@ref && !options.flatten.include?(@ref) &&
@ref =~ /^[0-9a-zA-Z]{6,52}$/)
options << ["Commit", [@ref]]