sortFieldsAsync Method

Sorts an array of fields with respect to favorite property order. Non-favorited fields get sorted by their default priority and always have lower priority than favorited fields.

sortFieldsAsync(imodel: IModelConnection, fields: Field[]): Promise<Field[]>

Parameter Type Description
imodel IModelConnection IModelConnection.
fields Field[] Array of Field's that needs to be sorted.

Returns - Promise<Field[]>

Defined in

Last Updated: 14 November, 2024