I've been trying to change the order of the $links Drupal produces for some time now with no success. I want to change the order to group relevant links at the bottom of a node rather than have the jumbled mess I've got now.

I've scoured drupal.org and the internet for clues but haven't been able to find an answer other than the fact I need to use theme_links and some sorting logic on the array.

Unfortunately I know next to zilch php and although I've checked the php.net manuals I can't work out how I should change the links in an effective way.

I'm sure there are lots of other people who want to do the same thing, and a fair few who've actually worked out how to do it!

I'd be really really grateful if someone could post an example of using theme_links with sorting logic to change the order from say A, B, C to B, C, A for example.

In tremulous anticipation and bated breath...

ac

;)

Comments

anonymouscowards’s picture

you know you want to!

Phillip Mc’s picture

was searching for something similar and found this: http://drupal.org/node/115920#comment-873822

just updating the thread.