Reverse Sort Order Command

Syntax

The syntax for the reverse sort order command is:

reverseSortOrder()

This command takes no arguments.


Function

The reverse sort order command reverses the sort order, and then it calls clearAllPaging().

Example - Using the reverse sort order command

This reverse sort order command reverses the sort order,
and it resets paging on the facet fields and page number:

  s.pn=3&s.ps=10&s.ff=ContentType,or,3,15&s.sort=PublicationDate:asc&s.cmd=reverseSortOrder()

Try It