[Expand]General Information
[Collapse]WinForms Controls
  .NET Core Support
 [Expand]What's Installed
 [Expand]Build an Application
 [Collapse]Controls and Libraries
  [Expand]Forms and User Controls
  [Expand]Messages, Notifications, and Dialogs
  [Expand]Editors and Simple Controls
  [Expand]Ribbon, Bars and Menu
  [Expand]Application UI Manager
  [Expand]Docking Library
  [Expand]Data Grid
  [Expand]Vertical Grid
  [Expand]Property Grid
  [Expand]Pivot Grid
  [Expand]Tree List
  [Expand]Gantt Control
  [Expand]Chart Control
  [Expand]Map Control
  [Expand]Rich Text Editor
  [Expand]Spell Checker
  [Expand]Form Layout Managers
  [Expand]Navigation Controls
  [Expand]PDF Viewer
   [Expand]Product Information
   [Expand]Getting Started
   [Expand]Graphical User Interface
    Supported Formats
   [Expand]Developer Guidelines
   [Expand]Data Acquisition
   [Collapse]Data Shaping
     Filter Document Data
     Format Document Data
     Parse Third-Party Content
     Group Document Data
     Sort Document Data
  [Expand]TreeMap Control
  [Expand]Sunburst Control
 [Expand]Common Features
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Report and Dashboard Server
[Expand]eXpressApp Framework
[Expand]eXpress Persistent Objects
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation
View this topic on docs.devexpress.com (Learn more)

Sort Document Data

This document describes how to sort dynamic data within a Snap document.

The document consists of the following sections.

Expanded Sort Snap List Data

To apply sorting to a Snap list, do the following.

  1. Select the Snap field that you wish to use as filter criteria. The field must be located inside a Snap list. This automatically activates the contextual Field tab in the main toolbar.
  2. In the Field tab, click the Sort Ascending or Sort Descending button, depending on the required sort order. The Snap list will automatically be updated to reflect the sorting applied.

    Sort commands are also available in the context menu.

You can specify multiple sort criteria for a Snap list. In this case, sort levels are applied in the order that they are added.

Expanded Sort Mail Merge Document Data

Sorting a mail merge document defines the order in which data entries will appear as pages of the final document.

To sort a mail merge document, do the following.

  1. Switch to the Mail Merge tab of the main toolbar and click the Sort command.

  2. Click the Add Level button in the invoked Sort dialog. Specify the sort criteria and sort order for the additional sort level.

    To change the order in which sort levels are applied to the document, use the arrow buttons.

    Click OK to exit the dialog.

  3. To view the result, click the Finish & Merge button in the Mail Merge tab of the main toolbar, and select Print Preview... in the invoked drop-down menu. In the invoked Export Range dialog, select All records and click OK.

    The following image demonstrates a print preview for a sorted mail merge document.

Expanded See Also

Is this topic helpful?​​​​​​​