### Eclipse Workspace Patch 1.0
#P Redmine
Index: app/views/timelog/_report_criteria.rhtml
===================================================================
--- app/views/timelog/_report_criteria.rhtml	(revision 2521)
+++ app/views/timelog/_report_criteria.rhtml	(working copy)
@@ -1,9 +1,11 @@
-<% @hours.collect {|h| h[criterias[level]].to_s}.uniq.each do |value| %>
+<% sorted_criterias = Hash.new %>
+<% @hours.collect {|h| h[criterias[level]].to_s}.uniq.each {|v| sorted_criterias[v] = format_criteria_value(criterias[level], v) } %>
+<% sorted_criterias.sort {|a,b| a[1]<=>b[1]}.each do |value, formatted_criteria_value| %>
 <% hours_for_value = select_hours(hours, criterias[level], value) -%>
 <% next if hours_for_value.empty? -%>
 <tr class="<%= cycle('odd', 'even') %> <%= 'last-level' unless criterias.length > level+1 %>">
 <%= '<td></td>' * level %>
-<td><%= h(format_criteria_value(criterias[level], value)) %></td>
+<td><%= h(formatted_criteria_value) %></td>
 <%= '<td></td>' * (criterias.length - level - 1) -%>
   <% total = 0 -%>
   <% @periods.each do |period| -%>
