pub fn resolve_order_target(
catalog: &'static OrderCatalog,
key: &str,
) -> Option<ResolvedOrderTarget>Expand description
Walk key (dot-separated, e.g. "author.profile.nickname") through
catalog, following to-one relation edges one segment at a time and
resolving the final segment against the current model’s scalar
columns.
Returns None for an unknown field, a relation segment with no
matching edge (including any to-many hop, which is never present in
the catalog), or a key whose last segment names a relation instead of
a scalar — every one of which the caller reports as the same
“unsupported sort field” validation error as any other bad key.