Index: usage/includes/pages.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/project/usage/includes/pages.inc,v
retrieving revision 1.1
diff -u -p -r1.1 pages.inc
--- usage/includes/pages.inc	17 Mar 2009 23:16:13 -0000	1.1
+++ usage/includes/pages.inc	8 Aug 2009 21:01:05 -0000
@@ -109,7 +109,10 @@ function project_usage_overview() {
   $sql_elements['wheres']['pieces'] = array('n.nid IN (SELECT nid FROM {project_usage_week_project}) AND n.status = %d');
   $where_args[] = 1;  // n.status = 1
   $sql_elements['group_bys']['pieces'] = array('n.nid', 'n.title');
-  $headers = array(array('field' => 'n.title', 'data' => t('Project')));
+  $headers = array(
+    t('Rank'),
+    array('field' => 'n.title', 'data' => t('Project')),
+  );
 
   $joins_args = array();
   foreach ($weeks as $i => $week) {
@@ -144,8 +147,12 @@ function project_usage_overview() {
   $args = array_merge($joins_args, $where_args);
   $result = db_query(project_usage_build_query($sql_elements) . tablesort_sql($headers), $args);
 
+  $rank = 1;
   while ($line = db_fetch_array($result)) {
-    $row = array(array('data' => l($line['title'], 'project/usage/'. $line['uri'])));
+    $row = array(
+      array('data' => $rank++),
+      array('data' => l($line['title'], 'project/usage/'. $line['uri'])),
+    );
     foreach ($weeks as $i => $week) {
       $row[] = array('data' => number_format($line["week{$i}"]), 'class' => 'project-usage-numbers');
     }
