Universeorange.com/Docs/
{string.compare.natural(String $string1, String $string2)}
String comparisons using a "natural order" algorithm.
This function implements a comparison algorithm that orders alphanumeric strings in the way a human being would, this is described as a "natural ordering".
Note that this comparison is case-sensitive.
Similar to other string comparison functions, this one returns an
integer
< 0
if string1 is less than string2;> 0
if string1 is greater than string2, and0
if they are equal.
https://www.php.net/manual/en/function.strnatcmp.php
Last modified: 2021-06-07
© 2021 universeorange.com