API Reference > bentleyjs-core > Ids > OrderedId64Iterable > OrderedId64Iterable.sortArray OrderedId64Iterable.sortArray Function Sort an array of Id64Strings in-place in ascending order by their 64-bit numerical values. sortArray(ids: Id64Array): Id64Array see OrderedId64Iterable.compare for the comparison routine used. note This function returns its input for consistency with Javascript's Array.sort method. It does not create a new array. Parameter Type Description ids Id64Array Returns - Id64Array the input array. Defined in core/bentley/src/OrderedId64Iterable.ts Line 51 Last Updated: 11 June, 2024