ascKey.php
Table of Contents
Functions
- ascKey() : string
- Returns the ascending form of a sort key in the textual sort grammar (the same grammar consumed by `SortTrait::prepareSort` and the HTTP `?sort=` query parameter).
Functions
ascKey()
Returns the ascending form of a sort key in the textual sort grammar (the same grammar consumed by `SortTrait::prepareSort` and the HTTP `?sort=` query parameter).
ascKey(string $key) : string
The ascending form is the key itself — no leading -. The helper exists
for symmetry with descKey() and to make sort intent explicit
at call site, avoiding magic-string concatenations.
Do not confuse with aqlAsc(), which
builds the AQL output token ("doc.name ASC") — this helper produces
the HTTP/textual input token ("name").
Parameters
- $key : string
-
The sort field (typically a typed constant such as
Prop::CREATED).
Tags
Return values
string —The ascending sort token.