Jacky Zhao
2023-12-19 443cd53a1acf33ac0aaa34e0e75760d3da912d18
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