Consider sorting labels in system notes by title
In system notes that reference multiple labels, the labels are sorted based on their reference.
I think we use references by id (~1
, ~2
, ...) when generating the system note so that the references are valid even if the label changes titles.
Sorting by these references is meaningless to the user (these are internal ids) and the sorting is broken when we have multi-digit ids (because we sort alphabetically) as seen in https://gitlab.com/gitlab-org/gitlab-ee/issues/12737#note_190131372.
We should consider sorting these by label title so that it makes more sense to the user.