- {#each cl.items as item}
+ {#each cl.items as item, idx}
{#if canEdit}
{#if canEdit}
-
+
+
+
+
+
{/if}
{/each}
diff --git a/src/lib/utils/fractional-index.ts b/src/lib/utils/fractional-index.ts
index f035ac0..1acaede 100644
--- a/src/lib/utils/fractional-index.ts
+++ b/src/lib/utils/fractional-index.ts
@@ -8,8 +8,8 @@
* https://observablehq.com/@dgreensp/implementing-fractional-indexing
*/
-const BASE_CHARS = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
-const MIDPOINT = 'N'; // roughly middle of uppercase range
+const BASE_CHARS = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz';
+const MIDPOINT = 'V'; // roughly middle of the charset
/**
* Generate a position string between `before` and `after`.