Please or Register to create posts and topics.

Sort Forums Alphabetically

I am aware of how to sort topics and posts, but I cannot figure out how to sort forums. I also know I can manually change the order on the backend, but I am using a hook to automatically add new forums and can’t go in there every time to sort them. I would like to automatically sort them alphabetically. Do you have a hook for that? TIA.

Okay, well it appears from the code that there is no hook for it, so I made a new function to reorder them automatically when I add a new forum.

@gogrw

How did you do that?

What is the code like?

 

Nur ein Biker weiß, warum ein Hund seinen Kopf aus einem Autofenster steckt.
Only a biker knows why a dog sticks its head out a car window.

@biker

I have set up my forum to automatically add a new support forum for each plugin I develop and upload on my site. Here is the code I made:

https://gist.github.com/apos37/68e27ab6aa12488b4f50e6996fbcd783

Biker has reacted to this post.
Biker