SortOrder Property

You use the SortOrder property to specify the sort order for fields and expressions in a report. For example, if you're printing a list of suppliers, you can sort the records alphabetically by company name. Read/write Boolean.


expression Required. An expression that returns one of the objects in the Applies To list.


The SortOrder property uses the following settings.


Visual Basic




(Default) Sorts values in ascending (A to Z, 0 to 9) order.



Sorts values in descending (Z to A, 9 to 0) order.

Note: You can set the SortOrder property by using the Group, Sort, and Total pane, a macro, or Visual Basic for Applications (VBA) code.

In Visual Basic, you set the SortOrder property in Design view, Layout view, or in the Open event procedure of a report by using the GroupLevel property.


The following example sets the sort order to ascending for the first group level in the "Product Summary" report.

Reports("Product Summary").GroupLevel(0).SortOrder = False  

Need more help?

Expand your Office skills
Explore training
Get new features first
Join Office Insiders

Was this information helpful?

Thank you for your feedback!

Thank you for your feedback! It sounds like it might be helpful to connect you to one of our Office support agents.