mirror of
https://github.com/discourse/discourse-ai.git
synced 2025-07-08 15:22:47 +00:00
DEV: replace sortBy with toSorted (#1476)
This commit is contained in:
parent
5ca7d5f256
commit
4ad64ed3b6
@ -70,7 +70,9 @@ export default class AiFeaturesList extends Component {
|
||||
return [];
|
||||
}
|
||||
|
||||
return this.args.modules.sortBy("module_name");
|
||||
return this.args.modules.toSorted((a, b) =>
|
||||
a.module_name.localeCompare(b.module_name)
|
||||
);
|
||||
}
|
||||
|
||||
@action
|
||||
|
Loading…
x
Reference in New Issue
Block a user