mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-04-05 10:59:33 +00:00
The query now searches in more fields. For example, when getting a list of tags, the query is applied to the tag name *and* category. When listing persons, the query now also looks in the associated organization name. This has been used to make some headers in the meta data tables clickable to sort the list accordingly. Refs: #965, #538
32 lines
467 B
Elm
32 lines
467 B
Elm
{-
|
|
Copyright 2020 Docspell Contributors
|
|
|
|
SPDX-License-Identifier: GPL-3.0-or-later
|
|
-}
|
|
|
|
|
|
module Data.FolderOrder exposing (FolderOrder(..), asString)
|
|
|
|
|
|
type FolderOrder
|
|
= NameAsc
|
|
| NameDesc
|
|
| OwnerAsc
|
|
| OwnerDesc
|
|
|
|
|
|
asString : FolderOrder -> String
|
|
asString order =
|
|
case order of
|
|
NameAsc ->
|
|
"name"
|
|
|
|
NameDesc ->
|
|
"-name"
|
|
|
|
OwnerAsc ->
|
|
"owner"
|
|
|
|
OwnerDesc ->
|
|
"-owner"
|