Version: 2
restore

Contents

Introduction

While searching for items sometimes it is necessary to get the result set sorted.

Building Sort Expression

Sort expressions are defined as JSON. It is defined as a collection of sort specs. Example:

Sort Expression
[  
  {  
     "Column":"Column1",
     "Direction":"ASC"
  },
  {  
     "Column":"Column2",
     "Direction":"DESC"
  }
]

 

Direction

  • ASC - sort in ascending order. If no direction is specified ASC is assumed.
  • DESC - sort in descending order.