Sort spaces ascending (#710)

Signed-off-by: Ilya Sumbatyants <ilya.sumb@gmail.com>
This commit is contained in:
Ilya Sumbatyants 2021-12-23 16:03:03 +07:00 committed by GitHub
parent edbf42c435
commit b380f7a12e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,