### Eclipse Workspace Patch 1.0
#P l10n_server
Index: l10n_community/translate.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/l10n_server/l10n_community/Attic/translate.inc,v
retrieving revision 1.1.2.7.2.31
diff -u -r1.1.2.7.2.31 translate.inc
--- l10n_community/translate.inc	25 Jan 2010 20:43:32 -0000	1.1.2.7.2.31
+++ l10n_community/translate.inc	9 Feb 2010 09:16:10 -0000
@@ -162,6 +162,14 @@
     '#default_value' => $filters['limit'],
   );
 
+  $form['sort'] = array(
+  '#type' => 'select',
+  '#title' => t('Sort'),
+  '#default_value' => isset($filters['sort']) ? $filters['sort'] : '',
+  '#options' => drupal_map_assoc(array('',asc,desc)),
+  '#default_value' => $filters['sort'],
+  );
+  
   $form['submit'] = array(
     '#value' => t('Filter'),
     '#type' => 'submit',
@@ -513,7 +521,7 @@
   $row = array();
   $labels = array();
   // Only display these elements in distinct table cells
-  $elements = array('project', 'release', 'context', 'status', 'author', 'search', 'limit');
+  $elements = array('project', 'release', 'context', 'status', 'author', 'search', 'limit', 'sort');
   foreach ($form as $id => &$element) {
     if (in_array($id, $elements)) {
       $labels[] = $element['#title'];
@@ -686,6 +694,11 @@
   $sql = $select .' '. $sql_where;
   $sql_count = $select_count .' '. $sql_where;
 
+  if (!empty($filters['sort'])) {
+  $sql_args[] = $filters['sort'];
+  $sql .= " ORDER BY s.value %s";
+  }
+  
   // We either need a pager or a full result.
   if (isset($pager)) {
     $strings = pager_query($sql, $pager, 0, $sql_count, $sql_args);
Index: l10n_community/l10n_community.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/l10n_server/l10n_community/Attic/l10n_community.module,v
retrieving revision 1.1.2.23.2.66
diff -u -r1.1.2.23.2.66 l10n_community.module
--- l10n_community/l10n_community.module	25 Jan 2010 20:43:32 -0000	1.1.2.23.2.66
+++ l10n_community/l10n_community.module	9 Feb 2010 09:16:10 -0000
@@ -1536,6 +1536,7 @@
     // Dropdown, validated by form API.
     'context' => isset($params['context']) ? (string) $params['context'] : 'all',
     'limit' => (isset($params['limit']) && in_array($params['limit'], array(5, 10, 20, 30))) ? (int) $params['limit'] : 10,
+    'sort' => (!empty($params['sort']) && in_array($params['sort'], array('',asc,desc))) ? (string) $params['sort'] : '',
   );
 
   // The project can be a dropdown or text field depending on number of
