Skip to content
JasonPP::

JSON_ARRAY_SORT_MODE

enum class JSON_ARRAY_SORT_MODE


An enum class containing sort modes for JsonArrays.

Altough it should be pretty self-explanatory, here is a short explanation:

The JsonArray::Sort() function always needs a mode. Do you want to sort in an ascending order? Descending maybe? And by numeric values or alphabetically?

Possible values:

NUM_ASC

Sort in an ascending order, by numeric value.

NUM_DESC

Sort in an descending order, by numeric value.

ALPH_ASC

Sort in an ascending order, by alphabetic value.

ALPH_DESC

Sort in an descending order, by alphabetic value.