Skip to content

Commit fdd9c1e

Browse files
committed
refactor: dont use toSorted
1 parent e87d225 commit fdd9c1e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/utilities/collection/src/collection.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ export class Collection<T extends CollectionItem = CollectionItem> {
146146
* Sort the values based on their index
147147
*/
148148
sort = (values: string[]): string[] => {
149-
return values.toSorted(this.sortFn)
149+
return [...values].sort(this.sortFn)
150150
}
151151

152152
/**

0 commit comments

Comments
 (0)