ArcGIS Pro 3.0 API Reference Guide
ArcGIS.Desktop.Core.Portal Namespace / PortalQueryParameters Class / SortField Property

SortField Property (PortalQueryParameters)
Gets or sets the field to sort by. (e.g for groups the allowed field names are title, owner, and created).
Syntax
public string SortField {get; set;}
Remarks
Corresponds to the "SortField=" parameter of a portal REST query. The allowed values are:
title, created, type, owner, modified, avgRating, numRatings, numComments, and numViews

SortField is ignored for spatial queries (i.e. when using a bounding box)
Requirements

Target Platforms: Windows 11, Windows 10, Windows 8.1

ArcGIS Pro version: 2.1 or higher.
See Also