Skip to content
This repository was archived by the owner on Jul 22, 2025. It is now read-only.

Commit 4ad64ed

Browse files
authored
DEV: replace sortBy with toSorted (#1476)
1 parent 5ca7d5f commit 4ad64ed

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

assets/javascripts/discourse/components/ai-features-list.gjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,9 @@ export default class AiFeaturesList extends Component {
7070
return [];
7171
}
7272

73-
return this.args.modules.sortBy("module_name");
73+
return this.args.modules.toSorted((a, b) =>
74+
a.module_name.localeCompare(b.module_name)
75+
);
7476
}
7577

7678
@action

0 commit comments

Comments
 (0)