summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Lee <mattl@gitlab.com>2017-01-20 10:55:32 -0500
committerMatt Lee <mattl@gitlab.com>2017-01-20 10:55:32 -0500
commitb125fb4bcb637bd842db7d018d8f9c60303d9beb (patch)
tree5650bbba40af0655eb321ab5cb92de4667d53502
parent9cac0317696cf47beb77bab28a914411b09ff26c (diff)
downloadgitlab-ce-26890-sort-branches.tar.gz
WIP: This makes the default sort order for branches 'recently updated' rather than by name.26890-sort-branches
-rw-r--r--app/controllers/projects/branches_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/projects/branches_controller.rb b/app/controllers/projects/branches_controller.rb
index 89d84809e3a..07a0a51855b 100644
--- a/app/controllers/projects/branches_controller.rb
+++ b/app/controllers/projects/branches_controller.rb
@@ -7,7 +7,7 @@ class Projects::BranchesController < Projects::ApplicationController
before_action :authorize_push_code!, only: [:new, :create, :destroy, :destroy_all_merged]
def index
- @sort = params[:sort].presence || sort_value_name
+ @sort = params[:sort].presence || sort_value_recently_updated
@branches = BranchesFinder.new(@repository, params).execute
@branches = Kaminari.paginate_array(@branches).page(params[:page])