You've got it right, just replace:
return lc($sortby{$a}) cmp lc($sortby{$b});
with:
return (rand > 0.5) ? 1 : -1;
and it should sort by priority, new, then random.
Cheers,
Alex
return lc($sortby{$a}) cmp lc($sortby{$b});
with:
return (rand > 0.5) ? 1 : -1;
and it should sort by priority, new, then random.
Cheers,
Alex