From e806c30fa1a7ab941969da01c05ac4adeeeeeb9e Mon Sep 17 00:00:00 2001
From: Mau Camargo <52770775+camargomau@users.noreply.github.com>
Date: Sun, 05 Nov 2023 19:30:10 +0000
Subject: [PATCH] docs: Add Mau Camargo's Notkesto to showcase (#570)

---
 docs/features/explorer.md |   11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/docs/features/explorer.md b/docs/features/explorer.md
index 4568ec0..fd656a8 100644
--- a/docs/features/explorer.md
+++ b/docs/features/explorer.md
@@ -8,7 +8,7 @@
 
 By default, it shows all folders and files on your page. To display the explorer in a different spot, you can edit the [[layout]].
 
-Display names for folders get determined by the `title` frontmatter field in `folder/index.md` (more detail in [[Authoring Content]]). If this file does not exist or does not contain frontmatter, the local folder name will be used instead.
+Display names for folders get determined by the `title` frontmatter field in `folder/index.md` (more detail in [[authoring content | Authoring Content]]). If this file does not exist or does not contain frontmatter, the local folder name will be used instead.
 
 > [!info]
 > The explorer uses local storage by default to save the state of your explorer. This is done to ensure a smooth experience when navigating to different pages.
@@ -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