&$section) { $section['order'] = (isset($section['order'])) ? $section['order'] : array_search($i, $keys); foreach ($section['fields'] as $index => &$field) { $field['order'] = (isset($field['order'])) ? $field['order'] : $index; /* If has LESS flag, make available on LESS */ if(isset($field['less']) && $field['less'] == true) { $this->less[] = $field['id']; } } /* Compare and Order params */ usort($section['fields'], "cmp"); } usort($sections, "cmp"); /* * Pass $sections back to the class */ $this->sections = $sections;