#3305 Year value sorting is wrong

git-svn-id: https://dev.finn.de/svn/cockpit/branches/reporting_merge@1781 7926756e-e54e-46e6-9721-ed318f58905e
pull/6827/head
t.felgentreff 14 years ago
parent c297208534
commit e85c2d52d2
  1. 2
      app/models/cost_query/filter/tyear.rb

@ -3,6 +3,6 @@ class CostQuery::Filter::Tyear < CostQuery::Filter::Base
label :label_year
def self.available_values(user)
1970.upto(Date.today.year).map {|i| [ l(label) + ' #' + i.to_s,i ]}
1970.upto(Date.today.year).map {|i| [ l(label) + ' #' + i.to_s,i ]}.reverse
end
end

Loading…
Cancel
Save