Skip to main content

core.sortstringarray

Home > @medplum/core > sortStringArray

sortStringArray() function

Sorts an array of strings in place using the localeCompare method.

This method will mutate the input array.

Signature:

export declare function sortStringArray(array: string[]): string[];

Parameters

Parameter

Type

Description

array

string[]

The array of strings to sort.

Returns:

string[]

The sorted array of strings.