• 
      

    Add sort_bug_ids() for tracker-aware bug ID sorting.

    Review Request #15305 — Created Sept. 14, 2026 and updated

    Information

    Review Board
    release-9.x

    Reviewers

    This change adds a helper that sorts bug IDs for display. When a tracker
    is given and its service provides a sort key for every ID, the IDs are
    ordered by those keys. Otherwise it falls back to the numeric-then-
    alphabetical sort used by get_bug_list().

    • Ran unit tests.
    • Used with my full change stack and a tracker that uses IDs like "ENG-12".
    Summary ID
    Add sort_bug_ids() for tracker-aware bug ID sorting.
    This change adds a helper that sorts bug IDs for display. When a tracker is given and its service provides a sort key for every ID, the IDs are ordered by those keys. Otherwise it falls back to the numeric-then- alphabetical sort used by `get_bug_list()`. Testing Done: - Ran unit tests. - Used with my full change stack and a tracker that uses IDs like "ENG-12".
    wlvrnxplosnxsopvyrpvktppyxrpmsvn
    Checks run (2 succeeded)
    flake8 passed.
    JSHint passed.