Create a sort configuration from an existing expression. ``` # use datafusion_expr::col; let sort_expr = col("foo").sort(true, true); // SORT ASC NULLS_FIRST ```
(self, asc: bool, nulls_first: bool)
| 1949 | /// let sort_expr = col("foo").sort(true, true); // SORT ASC NULLS_FIRST |
| 1950 | /// ``` |
| 1951 | pub fn sort(self, asc: bool, nulls_first: bool) -> Sort { |
| 1952 | Sort::new(self, asc, nulls_first) |
| 1953 | } |
| 1954 | |
| 1955 | /// Return `IsTrue(Box(self))` |
| 1956 | pub fn is_true(self) -> Expr { |