View Source MapSorter.SortSpec (Map Sorter v0.2.49)

Defines the sort spec types.

Link to this section Summary

Types

Sort spec key

Sort direction

t()

Sort spec

Link to this section Types

Specs

key() :: Map.key() | [Map.key()]

Sort spec key

Specs

sort_dir() :: :asc | :desc

Sort direction

Specs

t() ::
  key()
  | {key(), module()}
  | {sort_dir(), key()}
  | {sort_dir(), {key(), module()}}

Sort spec