/** * Used by usort to RE-sort log query results, because we lose the ordering * because we're possibly combining the results from two queries * @param EE_Change_Log $logA * @param EE_Change_Log $logB * @return int */ protected function _sort_logs_again($logA, $logB) { $timeA = $logA->get_raw('LOG_time'); $timeB = $logB->get_raw('LOG_time'); if ($timeA == $timeB) { return 0; } $comparison = $timeA < $timeB ? -1 : 1; if (strtoupper($this->_sort_logs_again_direction) == 'DESC') { return $comparison * -1; } else { return $comparison; } }