]> granicus.if.org Git - php/commitdiff
Update for sort functions - user can now specify sort type.
authorAndrei Zmievski <andrei@php.net>
Thu, 18 May 2000 01:53:41 +0000 (01:53 +0000)
committerAndrei Zmievski <andrei@php.net>
Thu, 18 May 2000 01:53:41 +0000 (01:53 +0000)
Zend/zend_operators.c

index 8707f3f29b29835f83ed83642f070f48fcb275b1..d8a1d2efccfd6483665eebb6cec99f7fc9e85cd5 100644 (file)
@@ -988,7 +988,7 @@ ZEND_API int numeric_compare_function(zval *result, zval *op1, zval *op2)
        convert_to_double(&op1_copy);
        convert_to_double(&op2_copy);
 
-       result->value.lval = NORMALIZE_BOOL(op2_copy.value.dval-op1_copy.value.dval);
+       result->value.lval = NORMALIZE_BOOL(op1_copy.value.dval-op2_copy.value.dval);
        result->type = IS_LONG;
 
        return SUCCESS;