Add an order_by expression (descending) ``` use sea_orm::{entity::*, query::*, tests_cfg::cake, DbBackend}; assert_eq!( cake::Entity::find() .order_by_desc(cake::Column::Id) .build(DbBackend::MySql) .to_string(), "SELECT `cake`.`id`, `cake`.`name` FROM `cake` ORDER BY `cake`.`id` DESC" ); ```
(mut self, col: C)
| 643 | /// ); |
| 644 | /// ``` |
| 645 | fn order_by_desc<C>(mut self, col: C) -> Self |
| 646 | where |
| 647 | C: IntoSimpleExpr, |
| 648 | { |
| 649 | self.query() |
| 650 | .order_by_expr(col.into_simple_expr(), Order::Desc); |
| 651 | self |
| 652 | } |
| 653 | |
| 654 | /// Add an order_by expression with nulls ordering option |
| 655 | /// ``` |
nothing calls this directly
no test coverage detected