Reverses the sort expression. For instance, `[a ASC NULLS LAST]` turns into `[a DESC NULLS FIRST]`. Such reversals are useful in planning, e.g. when constructing equivalent window expressions.
(&self)
| 99 | /// into `[a DESC NULLS FIRST]`. Such reversals are useful in planning, e.g. |
| 100 | /// when constructing equivalent window expressions. |
| 101 | pub fn reverse(&self) -> Self { |
| 102 | let mut result = self.clone(); |
| 103 | result.options = !result.options; |
| 104 | result |
| 105 | } |
| 106 | |
| 107 | /// Set the sort sort options to ASC |
| 108 | pub fn asc(mut self) -> Self { |