mirror of
https://github.com/docmost/docmost.git
synced 2025-11-14 13:31:13 +10:00
sort workspace list
This commit is contained in:
@ -15,7 +15,9 @@ export default function JoinedWorkspaces() {
|
||||
|
||||
return (
|
||||
<>
|
||||
{data.map((workspace: Partial<IWorkspace>, index) => (
|
||||
{data
|
||||
.sort((a, b) => a.name.localeCompare(b.name))
|
||||
.map((workspace: Partial<IWorkspace>, index) => (
|
||||
<UnstyledButton
|
||||
key={index}
|
||||
component={Link}
|
||||
|
||||
Reference in New Issue
Block a user