From 05a1c34c6f6973eebcbcc50f50b64c2a0d62e8fa Mon Sep 17 00:00:00 2001
From: Florence <59734957+Pydes-boop@users.noreply.github.com>
Date: Wed, 01 Nov 2023 16:57:32 +0000
Subject: [PATCH] docs: remove dead link (#561)
---
docs/features/explorer.md | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/docs/features/explorer.md b/docs/features/explorer.md
index 91766a9..fd656a8 100644
--- a/docs/features/explorer.md
+++ b/docs/features/explorer.md
@@ -75,7 +75,12 @@
Component.Explorer({
sortFn: (a, b) => {
if ((!a.file && !b.file) || (a.file && b.file)) {
- return a.displayName.localeCompare(b.displayName)
+ // sensitivity: "base": Only strings that differ in base letters compare as unequal. Examples: a ≠ b, a = á, a = A
+ // numeric: true: Whether numeric collation should be used, such that "1" < "2" < "10"
+ return a.displayName.localeCompare(b.displayName, undefined, {
+ numeric: true,
+ sensitivity: "base",
+ })
}
if (a.file && !b.file) {
return 1
@@ -191,7 +196,7 @@
}
}
},
-}})
+})
```
### Putting it all together
--
Gitblit v1.10.0