mirror of
https://github.com/discourse/discourse-ai.git
synced 2025-07-08 23:32:45 +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 [];
|
||||||
}
|
}
|
||||||
|
|
||||||
return this.args.modules.sortBy("module_name");
|
return this.args.modules.toSorted((a, b) =>
|
||||||
|
a.module_name.localeCompare(b.module_name)
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@action
|
@action
|
||||||
|
Loading…
x
Reference in New Issue
Block a user