diff --git a/.claude/settings.local.json b/.claude/settings.local.json
index 730b146..9c4ed36 100644
--- a/.claude/settings.local.json
+++ b/.claude/settings.local.json
@@ -5,5 +5,6 @@
],
"deny": [],
"ask": []
- }
+ },
+ "outputStyle": "default"
}
diff --git a/index.html b/index.html
index d14c4cc..d2050ca 100644
--- a/index.html
+++ b/index.html
@@ -73,6 +73,10 @@
Name
⬇
+
@@ -438,6 +442,7 @@
Tips & Tricks
+ - Sort snippets — Use the sort buttons to organize by Modified, Created, Name, or Size. Click a button twice to reverse the sort order (⬇ becomes ⬆).
- Extract inline data — When editing a spec with inline data, click "Extract to Dataset" to create a reusable dataset automatically.
- Dataset references — Astrolabe resolves dataset references at render time, so you can freely switch between inline and referenced data.
- Search across specs — The search box looks inside snippet names, comments, and the spec content itself.
diff --git a/src/js/snippet-manager.js b/src/js/snippet-manager.js
index 4ec41ba..29cbb81 100644
--- a/src/js/snippet-manager.js
+++ b/src/js/snippet-manager.js
@@ -225,6 +225,12 @@ const SnippetStorage = {
case 'created':
comparison = new Date(a.created) - new Date(b.created);
break;
+ case 'size':
+ // Calculate size for both snippets
+ const sizeA = new Blob([JSON.stringify(a)]).size;
+ const sizeB = new Blob([JSON.stringify(b)]).size;
+ comparison = sizeA - sizeB;
+ break;
case 'modified':
default:
comparison = new Date(a.modified) - new Date(b.modified);