[#21] Support for sorting asc/desc

these functions are usually called `normalize_…` not `ensure_…`