Introduction

The SortStage methods enable you to configure the aggregation pipeline to sort items by the specified fields. You can chain SortStage methods to define and prioritize the sorting criteria.

Learn more about aggregation pipeline stages.

Note: You can only run the aggregation pipeline on collections created in the CMS or with the Data Collections API. They cannot be used on Wix app collections or external collections.

Did this help?