diff --git a/src/client/editor/Editor.tsx b/src/client/editor/Editor.tsx index ae5ef37..2b63c08 100644 --- a/src/client/editor/Editor.tsx +++ b/src/client/editor/Editor.tsx @@ -98,7 +98,7 @@ export const Editor: FC = ({
-

Snippets

+ Snippets
@@ -108,7 +108,7 @@ export const Editor: FC = ({ {snippets.map( ({ name, label, icon: Icon, snippet }, index) => ( onAddSnippet(name, snippet)} > @@ -124,28 +124,33 @@ export const Editor: FC = ({
-

Examples

+ Examples
- {Object.entries(examples).map(([slug, title]) => { - const href = `${window.location.origin}/parameters/example/${slug}`; - return ( - - - - {" "} - (link opens in new tab) - - - {title} - - - ); - })} + {Object.entries(examples) + .sort() + .map(([slug, title], index) => { + const href = `${window.location.origin}/parameters/example/${slug}`; + return ( + + + + {" "} + (link opens in new tab) + + + {title} + + + ); + })}