- return sprintf(
- (defined $get{order} ? $get{order} eq $id : !$id) ? '%2$s ▼'
- : $nolink ? '%2$s' : '<a href="?%s">%s</a>',
- $id && "order=$id", $name
- );
+ return "$name ▼" if defined $get{order} ? $get{order} eq $id : !$id;
+ return $name if $nolink;
+ return showlink($name, '?'.($id && "order=$id"));