Add an order_by expression (ascending) ``` use sea_orm::{entity::*, query::*, tests_cfg::cake, DbBackend}; assert_eq!( cake::Entity::find() .order_by_asc(cake::Column::Id) .build(DbBackend::MySql) .to_string(), "SELECT `cake`.`id`, `cake`.`name` FROM `cake` ORDER BY `cake`.`id` ASC" ); ```
(mut self, col: C)
| 622 | /// ); |
| 623 | /// ``` |
| 624 | fn order_by_asc<C>(mut self, col: C) -> Self |
| 625 | where |
| 626 | C: IntoSimpleExpr, |
| 627 | { |
| 628 | self.query() |
| 629 | .order_by_expr(col.into_simple_expr(), Order::Asc); |
| 630 | self |
| 631 | } |
| 632 | |
| 633 | /// Add an order_by expression (descending) |
| 634 | /// ``` |