Sort items in collection

Use the Sort items in collection action A tool for building the processes, logic, and direction within workflows. sorts the items in a specified collection A variable containing multiple items, such as email addresses. Collection variables are useful for storing and operating on query results. For example, you can set up collection variables for names, email addresses, and index values to store results from querying a list. You can then loop through items in a particular collection variable (names, emails, or index values). in ascending or descending order.

For example, alphabetically sort a list of names.

To learn more about collection actions, complete the Nintex for Office 365 - Collection Operations course on Nintex University.

Before you start 

Add and configure Sort items in collection action

In the Designer:

  1. Click the Operations action group in the action toolbox.
  2. or

    Type the action name or function in the Search field at the top of the action toolbox.

  1. Drag the Sort items in collection action to the point in the workflow when you want to sort the items in a collection in ascending and or descending order.
  2. Open the Action Configuration window. For steps on how to open the Action configuration window, see Action configuration window.
  1. Select a Target Collection.
  2. Select the Direction you want to sort the items.
  3. Select an output variable.
  4. Click Save.

For more information on the fields and buttons see, Sort items in collection, buttons and settings.