@lvce-editor/extension-search-view 6.0.0 → 6.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1530,16 +1530,12 @@ const matchesParsedValue = (extension, parsedValue) => {
|
|
|
1530
1530
|
return false;
|
|
1531
1531
|
};
|
|
1532
1532
|
|
|
1533
|
-
const toSorted = (array, compare) => {
|
|
1534
|
-
return array.toSorted(compare);
|
|
1535
|
-
};
|
|
1536
|
-
|
|
1537
1533
|
const compareExtension = (extensionA, extensionB) => {
|
|
1538
1534
|
return extensionA.name.localeCompare(extensionB.name) || extensionA.id.localeCompare(extensionB.id);
|
|
1539
1535
|
};
|
|
1540
1536
|
|
|
1541
1537
|
const sortExtensions = extensions => {
|
|
1542
|
-
return toSorted(
|
|
1538
|
+
return extensions.toSorted(compareExtension);
|
|
1543
1539
|
};
|
|
1544
1540
|
|
|
1545
1541
|
const getExtensions = async (extensions, parsedValue) => {
|