Function rocket_dyn_templates::minijinja::filters::dictsort

source ·
pub fn dictsort(v: Value, kwargs: Kwargs) -> Result<Value, Error>
Expand description

Dict sorting functionality.

This filter works like |items but sorts the pairs by key first.

The filter accepts a few keyword arguments:

  • case_sensitive: set to true to make the sorting of strings case sensitive.
  • by: set to "value" to sort by value. Defaults to "key".
  • reverse: set to true to sort in reverse.