private function get_through_number($value) { $i = 0; foreach ($this->sort_order as $property_group) { foreach ($property_group as $key => $val) { if ($val == $value) { return $i; } else { $i++; } } } return false; }