Sign in Join
FPDoc Onlineexperiment

TJSONArray.Sort procedure

Member of TJSONArraypublicIn unit fpJson

Sort the items in the array.

Declaration

pascal
procedure Sort(Compare: TListSortCompare)

Arguments

Compare

Callback to compare 2 elements in the list.

Description

Sort can be used to perform a sort in an array. The array does not compare elements, for this the Compare callback must be used, to compare 2 elements from the array.

Errors

None.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.