mirror of
https://github.com/discourse/discourse.git
synced 2026-08-05 18:57:20 -05:00
This Pull Request introduces changes that replace the use of .sortBy with .sort combined with compare from @ember/utils. This update aims to modernize and standardize sorting operations throughout the codebase. **Main Changes:** * Replaced .sortBy with .sort and compare in various components, controllers, and services to improve sorting practices. * Updated sorting logic to handle optional chaining (?.) for increased robustness. * Adjusted sorting logic, including reversing, in some cases for more clarity and correctness. * Added a new deprecation workflow entry to handle sortBy deprecation logs (discourse.native-array-extensions.sortBy).