concrete/src/Page/Page.php
public function queueForDuplicationSort($a, $b)
    {
        if ($a['level'] > $b['level']) {
            return 1;
        }
        if ($a['level'] < $b['level']) {
            return -1;
        }
        if ($a['cDisplayOrder'] > $b['cDisplayOrder']) {
            return 1;
        }
        if ($a['cDisplayOrder'] < $b['cDisplayOrder']) {
            return -1;
        }
        if ($a['cID'] > $b['cID']) {
            return 1;
        }
        if ($a['cID'] < $b['cID']) {
            return -1;
        }

        return 0;
    }
public function queueForDuplicationSort($a, $b)
    {
        if ($a['level'] > $b['level']) {
            return 1;
        }
        if ($a['level'] < $b['level']) {
            return -1;
        }
        if ($a['cDisplayOrder'] > $b['cDisplayOrder']) {
            return 1;
        }
        if ($a['cDisplayOrder'] < $b['cDisplayOrder']) {
            return -1;
        }
        if ($a['cID'] > $b['cID']) {
            return 1;
        }
        if ($a['cID'] < $b['cID']) {
            return -1;
        }

        return 0;
    }
public function queueForDuplicationSort ( $ a , $ b ) { if ( $ a [ 'level' ] > $ b [ 'level' ] ) { return 1 ; } if ( $ a [ 'level' ] < $ b [ 'level' ] ) { return - 1 ; } if ( $ a [ 'cDisplayOrder' ] > $ b [ 'cDisplayOrder' ] ) { return 1 ; } if ( $ a [ 'cDisplayOrder' ] < $ b [ 'cDisplayOrder' ] ) { return - 1 ; } if ( $ a [ 'cID' ] > $ b [ 'cID' ] ) { return 1 ; } if ( $ a [ 'cID' ] < $ b [ 'cID' ] ) { return - 1 ; } return 0 ; }
Sort a list of pages, so that the order is correct for the duplication.

@param array $a
@param array $b

@return int
Sort a list of pages so that the order is correct for the duplication .