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

An order of a grid's rows: a column, and a direction.

A grid's query holds a list of them, the first the most important: a
click on a column's header sorts by that column alone, and a click with
Shift adds it to the list.

# `direction`

```elixir
@type direction() :: :asc | :desc
```

# `t`

```elixir
@type t() :: %Masu.Sort{direction: direction(), key: String.t()}
```

# `new`

```elixir
@spec new(String.t() | atom(), direction()) :: t()
```

A sort by the column with `key`, ascending unless `direction` says.

---

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