Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Sort an array by values using a user-defined comparison function
<?php usort(array &$array, callable $callback): true
<?php             $this->_conn->quote($tableName)

        ));



        usort(

            $indexArray,





            static function (array $a, array $b): int {

                if ($a['pk'] === $b['pk']) {

                    return $a['cid'] - $b['cid'];

                }



                return $a['pk'] - $b['pk'];

            }

        );



        foreach ($indexArray as $indexColumnRow) {

            if ($indexColumnRow['pk'] === 0 || $indexColumnRow['pk'] === '0') {