I’m trying to return the url of the sort (using $sort->link($name, $label). At the moment it returns the link with the <a> tags around it. I just want to return the url so I can output it accordingly.
What I’m trying to do with the links is put them into a popup menu (using mbmenu).
Well, there’s CSort.createUrl() for that, which is even invoked by link(). It would pretty much boil down to:
You’ll most likely have to perform apply additional logic on $directions. Check the source for link() on that.