# sonarjs/no-alphabetical-sort

📝 "Array.prototype.sort()" and "Array.prototype.toSorted()" should use a compare function.

💼 This rule is enabled in the ✅ `recommended` config.

💡 This rule is manually fixable by [editor suggestions](https://eslint.org/docs/latest/use/core-concepts#rule-suggestions).

💭 This rule requires [type information](https://typescript-eslint.io/linting/typed-linting).

<!-- end auto-generated rule header -->
