sort workspace list
This commit is contained in:
parent
05a3dfa26d
commit
4f9e588494
1 changed files with 28 additions and 26 deletions
|
|
@ -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}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue