/**
 * @private
 * Serializes the sort options provided from the request options
 * object into a string that the OGC API can understand
 *
 * @param options ISearchOgcItemsOptions that contain sorting information
 * @returns a serialized sort string
 */
export function getSortByQueryParam(options) {
    const { sortField, sortOrder } = options;
    let result;
    if (sortField) {
        result =
            sortOrder === "desc"
                ? `-properties.${sortField}`
                : `properties.${sortField}`;
    }
    return result;
}
//# sourceMappingURL=getSortByQueryParam.js.map