Skip to main content

Sort Order

This section describes how values are sorted within Dataprep by Trifacta. Sorting can be applied through the following mechanisms:

  • Clicking a column header in a workspace table, such as the Flows, Library for Data, or Job History pages.

  • Applying a Sort transform.

    Note

    In Dataprep by Trifacta, sorting transformations are applied only to the data within the Transformer page. Sort order based on these transformations cannot be guaranteed in any related outputs.

  • Applying the ARRAYSORT function to an array.

Note

Following listings represent sorting in ascending order. Descending order sorting is in the reverse of the listings below.

General Sort Order

For any column, sorting is performed in the following order:

  1. Sorting based on data type

  2. Mismatched values

  3. Null/empty values

Sort Order for Strings

Since all values are valid for String data type, this sort order represents the most common representation for sort order.

  1. Sorting based on data type:

    1. Numeric values (low value to high value)

    2. Whitespace

    3. Special characters

    4. Alphabetical

      1. Case-insensitive

      2. Accented characters (ä) are below unaccented character (a)

  2. Mismatched values

  3. Null/empty values

Sort Order for Integers and Decimals

For Integers and Decimals, sorting happens in the following order:

  1. Sorting based on data type:

    1. Numeric values (low value to high value)

  2. Mismatched values

  3. Null/empty values