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