Sort formatter diagnostics in snapshots (#24375)
## Summary
Right now these tests are dependent on input order, so changes in the
underlying hash can lead to churn in the fixtures. See, e.g.:
https://github.com/astral-sh/ruff/pull/24355#discussion_r3026451902.