Weird sorting of merge requests in UI

  • SonarQube Version 9.3 (build 51899)

In the UI, go to a project and open the dropdown menu for different branches and merge requests. The sorting of those seems a little bit confusing (see attached screenshot). So after switching from 99 to 100, the list starts with 100 instead of the lowest value.

Hi,

What you’re seeing is an alphabetical sort of PR key. :frowning:

This has been reported internally in the past, without getting enough “traction” to actually get fixed (partly because we couldn’t agree on what the sort should be.)

Could you share what sort you expect?

 
Thx,
Ann

Hi Ann

As for the merge request view which is numbered, I would expect them to be sorted by the number. For normal analysis on different branches the alphabetical sorting is fine.

Thanks,
Colin

1 Like

Hi Colin,

Thanks for this. I’m going to pass it on internally.

To be clear, I guess you expect a descending sort (newest on top)?

 
Ann

1 Like

Hi Ann

Yes, exactly. Newest on top would be perfect!

Colin

1 Like

Thanks a lot for the report @colin1993. What you report and what you expect make total sense to me.

I’ve created this ticket to track the change.

2 Likes