11 lines
360 B
TypeScript
11 lines
360 B
TypeScript
/**
|
|
* Copyright (c) 2023-present Plane Software, Inc. and contributors
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
* See the LICENSE file for details.
|
|
*/
|
|
|
|
// plane imports
|
|
import type { IWorkspace } from "@plane/types";
|
|
|
|
export const orderWorkspacesList = (workspaces: IWorkspace[]): IWorkspace[] =>
|
|
workspaces.sort((a, b) => a.name.localeCompare(b.name));
|