# This patch file was generated by NetBeans IDE
# This patch can be applied using context Tools: Apply Diff Patch action on respective folder.
# It uses platform neutral UTF-8 encoding.
# Above lines and this line are ignored by the patching process.
--- uc_upsell_core.inc
+++ uc_upsell_core.inc
@@ -169,10 +169,12 @@
         case 'override':
           $node = node_load($nid);
           $related = uc_upsell_get_tids_for_intersect($node);
+		  shuffle($related);
           break;
         case 'add':
           $node = node_load($nid);
           $related_by_term = uc_upsell_get_tids_for_intersect($node);
+		  shuffle($related_by_term);
           $related_by_term = array_unique(array_merge((array)$related, (array)$related_by_term));
           break;
       }
@@ -226,7 +228,7 @@
   drupal_alter('uc_upsell_related', $ary);
 
   // Shuffle related nodes
-  shuffle($ary);
+  //shuffle($ary);
 
   // If max is valid, slice array to only show our configured maximum
   if ($max > 0) $ary = array_slice($ary, 0, $max);
