sort folders alphabetically
This commit is contained in:
1 parent
5725024d80
commit
971cde5310
2 files changed
+2
No files matched your search
@@ -49,6 +49,7 @@ export const PromptFolders = () => {
|
||||
<div className="flex w-full flex-col pt-2">
|
||||
{folders
|
||||
.filter((folder) => folder.type === 'prompt')
|
||||
.sort((a, b) => a.name.localeCompare(b.name))
|
||||
.map((folder, index) => (
|
||||
<Folder
|
||||
key={index}
|
||||
|
||||
Reference in new issue
Block a user