Index: video.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/video/video.module,v
retrieving revision 1.10
diff -u -r1.10 video.module
--- video.module	1 Sep 2005 18:52:19 -0000	1.10
+++ video.module	11 Sep 2005 17:27:56 -0000
@@ -557,8 +557,8 @@
  *   string HTML content for a block
  */
 function video_block_list($type = 'top') {
-  $orderby = ($type == 'new') ? 'n.created' : 'v.download_counter';
-  return node_title_list(db_query_range(db_rewrite_sql("SELECT DISTINCT(n.nid), n.title FROM {node} n, {video} v WHERE n.type = 'video' AND n.status = 1 AND n.moderate = 0 ORDER by $orderby DESC"),0, 10));
+  $orderby = ($type == 'new') ? 'n.created' : 'v.download_counter + v.play_counter';
+  return node_title_list(db_query_range(db_rewrite_sql("SELECT n.nid, n.title FROM {node} n, {video} v WHERE n.nid = v.nid AND n.type = 'video' AND n.status = 1 AND n.moderate = 0 ORDER BY $orderby DESC"),0, 10));
 }
 
 /**

