Sort spaces ascending (#710)

Signed-off-by: Ilya Sumbatyants <ilya.sumb@gmail.com>
This commit is contained in:
Ilya Sumbatyants
2021-12-23 10:03:03 +01:00
committed by GitHub
parent edbf42c435
commit b380f7a12e
@@ -14,6 +14,7 @@
-->
<script lang="ts">
import { SortingOrder } from '@anticrm/core'
import type { Doc, Ref, Space } from '@anticrm/core'
import core from '@anticrm/core'
import { getResource, IntlString } from '@anticrm/platform'
@@ -34,7 +35,7 @@
let spaces: Space[] = []
let selected: Ref<Space> | undefined = undefined
$: query.query(model.spaceClass, { archived: false }, result => { spaces = result })
$: query.query(model.spaceClass, { archived: false }, result => { spaces = result }, { sort: { name: SortingOrder.Ascending }})
const addSpace: Action = {
label: model.addSpaceLabel,