Breaking the Alphabet: Rethinking File Ordering in Code Review
Md Shamimur Rahman, Zadia Codabux, Chanchal K. Roy
Abstract
Effective code review is central to maintaining software quality, yet there is limited research about how the ordering of changed files in Pull Requests (PRs) influences review effectiveness. Most popular code review tools default to alphabetical ordering, favoring predictability over contextual relevance. While prior studies examined how file position shapes reviewer attention, it remains unclear how such ordering influences cognitive load and perceived review thoroughness. This study presents the first large-scale survey of 1,355 professional developers across 182 widely used open-source projects to investigate how file ordering impacts review behavior, comprehension, and perceived effectiveness. Our mixed-methods analysis reveals that only 10.2% of reviewers consider alphabetical ordering optimal, underscoring a cognitive misalignment in their interpretation of code changes. Although some developers appreciate its predictability, more than half (57.6%) report that it increases context switching, disrupts logical reasoning, and contributes to review fatigue, and 63.9% expressed concern that the default ordering may cause them to miss bugs. We further identify key challenges in multi-file reviews and elicit developers' expectations for improved tooling, including dependency-aware grouping and customizable file ordering (requested by 66% of reviewers). These findings highlight the need for reviewer-centric interface designs that better align tool behavior with human cognition.
• Software and its engineering → Software creation and management; • Software post-development issues → Maintaining software; Software evolution; Software version control.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext b6a020e0-3dbb-4e45-9f99-0c49f828aeaeBuilds on5
- Biases and differences in code review using medical imaging and eye-tracking: genders, humans, and machinesYu Huang, Kevin Leach, Zohreh Sharafi, Nicholas McKay et al.FSE 2020 · 37 citations
- A tale from the trenches: cognitive biases and software developmentSouti Chattopadhyay, Nicholas Nelson, Audrey Au, Natalia Morales et al.ICSE 2020 · 23 citations
- First come first served: the impact of file position on code reviewEnrico Fregnan, Larissa Braz, Marco D'Ambros, Gül Çalikli et al.FSE 2022 · 16 citations
- Primers or reminders?: the effects of existing review comments on code reviewDavide Spadini, Gül Çalikli, Alberto BacchelliICSE 2020 · 13 citations
- An Empirical Study on Code Review Activity Prediction and Its Impact in PracticeDoriane Olewicki, Sarra Habchi, Bram AdamsFSE 2024 · 2 citations
Related papers
- Opportunities and Challenges in Repeated Revisions to Pull-Requests: An Empirical StudyZhixing Li, Yue Yu, Tao Wang, Shanshan Li et al.CSCW 2022 · 11 citations
- Barriers for Students During Code Change ComprehensionJustin Middleton, John-Paul Ore, Kathryn T. StoleeICSE 2024 · 7 citations
- "@alex, this fixes #9": Analysis of Referencing Patterns in Pull Request DiscussionsAshish Chopra, Morgan Mo, Samuel Dodson, Ivan Beschastnikh et al.CSCW 2021 · 13 citations
- Why Security Defects Go Unnoticed during Code Reviews? A Case-Control Study of the Chromium OS ProjectRajshakhar Paul, Asif Kamal Turzo, Amiangshu BosuICSE 2021 · 2 citations
- The Effect of Complexity and Provenance on Code Review Decisions: Evidence from a Controlled ExperimentNeha Singh, Francesco Sovrano, Vincent J. Hellendoorn, Alberto BacchelliFSE 2026
