In MongoDB, the $strcasecmp aggregation pipeline operator performs a case-insensitive comparison of two strings.
It returns either 1, 0, or -1, depending on whether or not the first string is greater than, equal to, or less than the second string.