pub fn order_value_sql(hops: &[RelationHop], column: &str) -> StringExpand description
Build the correlated-subquery expression that yields column at the end
of hops, relative to the table reached by the first hop.
Unscoped: this string ignores every hop’s RelatedReadScope and
does not handle self-relation hops. It is only suitable for a backend
that enforces no read policy (the embedded rusqlite renderer); the
Postgres backend renders relation sorts from the hops themselves,
applying each hop’s scope.
hops[0] is rendered by the caller (it becomes the outermost
subquery’s linkage), so only hops[1..] are nested here.
Panics if hops is empty; callers only reach this from a generated
accessor that has traversed at least one relation.