public function process(\Jb\Bundle\TagCloudBundle\Model\TagCloud $cloud)
    {
        $keys = array_keys($cloud->getTags());
        asort($keys);

        $new = array();
        $old = $cloud->getTags();

        foreach($keys as $key) {
            $new[$key] = $old[$key];
        }

        $cloud->setTags($new);
    }
public function process(\Jb\Bundle\TagCloudBundle\Model\TagCloud $cloud)
    {
        $keys = array_keys($cloud->getTags());
        asort($keys);

        $new = array();
        $old = $cloud->getTags();

        foreach($keys as $key) {
            $new[$key] = $old[$key];
        }

        $cloud->setTags($new);
    }
public function process ( \ Jb \ Bundle \ TagCloudBundle \ Model \ TagCloud $ cloud ) { $ keys = array_keys ( $ cloud -> getTags ( ) ) ; asort ( $ keys ) ; $ new = array ( ) ; $ old = $ cloud -> getTags ( ) ; foreach ( $ keys as $ key ) { $ new [ $ key ] = $ old [ $ key ] ; } $ cloud -> setTags ( $ new ) ; }
Sort the tag in the cloud

@param \Jb\Bundle\TagCloudBundle\Model\TagCloud $cloud
Sort the tag in the cloud