asc
relationalai.semantics.std.aggregates
asc(*args: AggValue) -> OrderingSpecify ascending order for values in sorting and ranking operations.
Parameters
Section titled “Parameters”
(*argsAggValue, default:()) - Values to sort in ascending order.
Returns
Section titled “Returns”Ordering- AnOrderingobject representing ascending order.
Examples
Section titled “Examples”Rank employees by salary in ascending order:
>>> select(Employee, aggregates.rank(aggregates.asc(Employee.salary)))Referenced By
Section titled “Referenced By”RelationalAI Documentation └── Build With RelationalAI └── Understand how PyRel works ├── Build a semantic model │ └── Query a model │ └── Rank and select top results withrank,asc,desc, andtop└── Use advanced reasoning > Rules-based reasoning └── Aggregate and group data └── Rank groups with.rank()