orderby] == $b[$this->orderby]) { return 0; } /* Interesting concept, don't know if I like it but it seems intuitive. */ if (is_numeric( $a[$this->orderby]) && is_numeric($b[$this->orderby])) { return $a[$this->orderby] < $b[$this->orderby] ? 1 : -1; } return $a[$this->orderby] > $b[$this->orderby] ? 1 : -1; } function aquire() { usort($this->data_source,array($this,"compare")); foreach ($this->data_source as $r) { $this->add_row($r); } } } ?>