Surgex v0.5.0 Surgex.Parser.SortParser

Parses the JSON API’s sort parameter according to the JSON API spec.

Produces a {direction, column} tuple, in which direction is either :asc or :desc and column is a safely atomized and underscored column name.

Summary

Functions

call(input, allowed_columns)
flatten(input, key)