This is a bug =( ....it's in the my_custom subroutine too.
You need to switch $IN->param and the custom user option, so for example:
my $way = $USER->{SortOrd} || $IN->param('so') || $opts->{'Sort Order'} || 'ASC';
...would become:
my $way = $IN->param('so') || $USER->{SortOrd} || $opts->{'Sort Order'} || 'ASC';
You need to switch $IN->param and the custom user option, so for example:
Code:
my $ord = $USER->{SortField} || $IN->param('sf') || $opts->{'Sort Field'} || 'ID'; my $way = $USER->{SortOrd} || $IN->param('so') || $opts->{'Sort Order'} || 'ASC';
...would become:
Code:
my $ord = $IN->param('sf') || $USER->{SortField} || $opts->{'Sort Field'} || 'ID'; my $way = $IN->param('so') || $USER->{SortOrd} || $opts->{'Sort Order'} || 'ASC';