Skip to content

Branch sorting in refs dropdown to show recently updated branches first

What does this MR do and why?

Branch sorting in refs dropdown to show recently updated branches first

Changes the default sort order for branches in the /refs endpoint from alphabetical to updated_desc, making recently active branches appear at the top of dropdowns in merge request forms and other branch selectors.

Tags continue to use alphabetical sorting as version numbers benefit from lexical ordering.

Branch dropdown in MR Branches List
Screenshot_2025-08-19_at_2.00.37_PM Screenshot_2025-08-19_at_2.01.11_PM

Resolves #561483 (closed)

References

Screenshots or screen recordings

Before After

How to set up and validate locally

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Kai Armstrong

Merge request reports

Loading