# `Cardbox.Sort`
[🔗](https://github.com/hattoriai/cardbox/blob/v0.1.0/lib/cardbox/sort.ex#L1)

An order of records by a field: `%{"field" => "due", "dir" => "asc"}`.

Empty values come last in both directions. Texts sort without case; a
select and a status sort in the order of their choices, as a board
shows them; dates and numbers as themselves. Fields of several values
(multi-selects, relations, several people) do not sort.

# `t`

```elixir
@type t() :: %Cardbox.Sort{dir: :asc | :desc, field: String.t()}
```

---

*Consult [api-reference.md](api-reference.md) for complete listing*
