Commit 6e3eec16 authored by Rémy Coutable's avatar Rémy Coutable

Merge branch '26890-sort-branches' into 'master'

This makes the default sort order for branches 'recently updated' rather than by name.

Closes #26890

See merge request !8666
parents bb23d462 b125fb4b
......@@ -8,7 +8,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])
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment