It would be nice if there is a method that only returns the new url according to the attribute thus you can use it in a different scenario as a link.

In my case I needed to create a dropDown sort widget.

You can use CSort::createUrl($controller, array($attribute=>true))

Thats right, but the multiSort and descending true || false features will be lost.