{
"type": "object",
"properties": {
"referenceStr": {
"description": "The reference string to compare",
"type": "string"
},
"compareString": {
"description": "The string against which the referring string is compared",
"type": "string"
},
"locales": {
"description": "A string with a BCP 47 language tag, or an array of such strings",
"type": "string"
},
"options": {
"description": "Options to pass",
"type": "object",
"properties": {},
"required": [
"options"
],
"additionalProperties": false
}
},
"required": [
"referenceStr",
"compareString"
],
"additionalProperties": false
}
Return
DetailsExampleSchema
Name
Type
Description
compareResult
number
Negative number if the reference string occurs before the compare string; positive if the reference string occurs after the compare string; 0 if they are equivalent
Copied to Clipboard
-59912421
Copied to Clipboard
{
"description": "Negative number if the reference string occurs before the compare string; positive if the reference string occurs after the compare string; 0 if they are equivalent",
"type": "integer"
}