3.1.5.16.1.1.3 CustomSortOrder

Type: CSOM String

Accessibility: Read/Write

Specifies the custom sort order of the current Term (section 3.1.5.16) object.

The return value is a string that is composed of the child Term GUIDs and separated by a semicolon ( ‘:’). When the custom sort order is null or empty, the child Term objects of the current Term are sorted alphabetically based on the language of the current TermStore (section 3.1.5.23) object.

Remarks:

If the custom sort-order value contains an invalid GUID, or if one of the GUIDs does not belong to its child Term objects, then it is ignored. If any GUID that belongs to a child Term is not included, then it will be sorted alphabetically following the Term objects with custom sort order.

Call the CommitAll (section 3.1.5.23.2.1.1) method to save this change to the database.

Exceptions:

Error Code

Error Type Name

Condition

-2147024891

UnauthorizedAccessException

The protocol client has insufficient permissions to perform this operation.

-1

TermStoreOperationException

This operation is invalid in the orphaned terms term set (section 3.1.5.20) object. The operation failed.