THotPDF.SetPortfolioSortOrder Method

procedure SetPortfolioSortOrder(
  const SortKeys: array of THPDFPortfolioSortKey);

Writes a scalar collection sort entry for one key or parallel key and direction arrays for multiple keys

Each key must be a non-empty PDF Name formed from letters, digits, underscore, hyphen, or full stop

An empty array removes the current sort order