public function sortTypes(array &$types)
    {
        if (WF::is_numeric_array($types))
            return usort($types, [$this, 'compareTypes']);

        return uksort($types, [$this, 'compareTypes']);
    }