Add random sorting to player gallery widget

This commit is contained in:
Brian Miyaji
2015-06-21 00:29:43 +10:00
parent 22b263f527
commit f03b72167d
3 changed files with 16 additions and 0 deletions

View File

@@ -59,6 +59,8 @@ endif;
if ( $orderby == 'default' ):
$orderby = $list->orderby;
$order = $list->order;
elseif ( $orderby == 'rand' ):
uasort( $data, 'sp_sort_random' );
else:
$list->priorities = array(
array(