Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modules in the top menu are randomly sorted when config cache is cleared #380

Open
rlockerbie opened this issue Oct 1, 2024 · 0 comments
Assignees

Comments

@rlockerbie
Copy link
Contributor

This is pretty minor but I think it would be better if the top menu was sorted. At the moment the order changes randomly when the config cache is cleared.

It should be an easy fix, just need to sort the modules coming from this function:
https://github.com/2pisoftware/cmfive-core/blob/main/system/web.php#L1453

Doing something similar to this:

public function modules()
    {
        $keys = Config::keys();
        sort($keys);
        return $keys;
    }

I'm not sure where else this function is called and if the order matters though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants