Skip to main content

Sort your data within an attribute

Sort your data within an attribute in Data View in Productsup.

Introduction

If some of your attributes in Data View contain item lists, you can sort them in a necessary order with the help of special rule boxes.

Sort values in a descending or ascending order

The Sort Values rule box lets you sort a list of items in your attributes in ascending or descending order.

  1. Go to Data View from the site's main menu.

  2. Choose the Intermediate stage or the desired export channel from the drop-down menu in the upper ribbon.

  3. Select the Edit button in the attribute column you want to sort. The toolbar opens on the right-hand side.

    Edit attribute
  4. Select the Add Box drop-down menu in the opened toolbar.

  5. Search for and select the Sort Values rule box.

    Sort values rule box
  6. Define the delimiter to separate the list items.

  7. Select descending or ascending from the Order drop-down menu.

  8. Select Save to apply the rule box.

Here's an example of applying the Sort Values rule box:

Before

After

white, red, blue, yellow, green, black

black, blue, green, red, white, yellow

Sort values in a custom order

The Sort Values in Cell rule box lets you sort an item list in a custom order. You can sort values according to the specified order or regex patterns.

  1. Go to Data View from the site's main menu.

  2. Choose the Intermediate stage or the desired export channel from the drop-down menu in the upper ribbon.

  3. Select the Edit button in the attribute column you want to sort. The toolbar opens on the right-hand side.

  4. Select the Add Box drop-down menu.

  5. Search for and select the Sort Values in Cell rule box.

    Sort Value in Cell
  6. Define the delimiter to separate the items in your attribute.

  7. Select descending or ascending from the Order drop-down menu.

    Note

    The platform ignores the order selected from the Order drop-down menu if you list items in the Sort field.

  8. Define whether the listed values are strings or regex in the Mode drop-down menu.

    Note

    A regular expression (regex) is a sequence of characters that uses specific syntax or structure rules to define a search pattern and lets you search your data for a particular pattern of text instead of the exact text.

    Remember to place the search pattern within two forward slashes (/) or hash symbols ( #). For example, /regex/ or #regex#.

  9. Optionally, list values in the desired sorting order in the Sort field. Enter one value per line only.

    Note

    All not-listed values appear in the order by their first appearance in the list after the listed values.

  10. Select Save to apply the rule box.

Here's an example of applying the Sort Values in Cell rule box with the regex mode and a custom list of values:

sort_values_cell.png

Before

After

L | XS | medium | small

small | medium | L | XS