cAllDatabaseFields::fn_compare() - rstoetter/libsqlphp GitHub Wiki
Method fn_compare( )
private static mixed rstoetter\libsqlphp\cAllDatabaseFields::fn_compare(\rstoetter\libsqlphp\cDatabaseField $a, \rstoetter\libsqlphp\cDatabaseField $b)
- Namespace : rstoetter\libsqlphp
- Class name: cAllDatabaseFields
- This method is defined by rstoetter\libsqlphp\cAllDatabaseFields
The compare function of SortEntries( )
The comparison function must return an integer less than, equal to, or greater than zero if the first argument is considered to be respectively less than, equal to, or greater than the second. Note that before PHP 7.0.0 this integer had to be in the range from -2147483648 to 2147483647.
Example:
Arguments
- $a rstoetter\libsqlphp\cDatabaseField - <p>is the first database field to compare</p>
- $b rstoetter\libsqlphp\cDatabaseField - <p>is the second database field to compare</p>