Predefined function reference

string_compare

A reference entry for string_compare

Predefined function · string

string_compare (string text1, string text2, boolean insensitively) ⇒ boolean

Compares two strings alphabetically. Returns -1 if the first word comes before the second, returns 0 if both words are exactly equal, returns 1 if the second word comes before the first.

Notes

This function allows you to develop fast and efficient sorting algorithms on strings.