Reverse Table Order

Overview

Users may want to reverse the order of the rows in an entire table, where the last row becomes the first row and vice versa. Deephaven offer two ways to accomplish this: by using the reverse method in a query, or through the Deephaven console. The following details how to use Reverse Table in the Deephaven Console. See: Table Operations > Reversing Table Order for more about using query methods.

Reverse Table

To reverse a table while working in the Deephaven console, right-click on any column header in the table and select Reverse Table from the drop-down menu, as shown below.

The following three options are presented:

  • Reverse Before Sorting: Selecting this option reverses the table order immediately. This reversed table can then be manually sorted as many times as needed.
  • Reverse After Sorting: Selecting this option reverses the order of rows after manual sorting methods are applied. When more than one manual sorting operation is applied to the table, all sort operations are sequentially applied to the unaltered table before returning the rows in reverse order.
  • No Reversal: Selecting this option restores the order of the original table. If manual sorting has been applied to the table before this option is chosen, those sorting results remain visible in the table.

Examples