src/Zicht/Bundle/FrameworkExtraBundle/Util/SortedSetMap.php
private function stateChanged()
    {
        $keys = array_keys($this->values);
        foreach ($keys as $key) {
            if (!count($this->values[$key])) {
                unset($this->values[$key]);
            }
        }
        ksort($this->values);
    }
private function stateChanged()
    {
        $keys = array_keys($this->values);
        foreach ($keys as $key) {
            if (!count($this->values[$key])) {
                unset($this->values[$key]);
            }
        }
        ksort($this->values);
    }
private function stateChanged ( ) { $ keys = array_keys ( $ this -> values ) ; foreach ( $ keys as $ key ) { if ( ! count ( $ this -> values [ $ key ] ) ) { unset ( $ this -> values [ $ key ] ) ; } } ksort ( $ this -> values ) ; }
Ensures all empty sets are removed, and sorts the sets by key name.

@return void
Ensures all empty sets are removed and sorts the sets by key name .