aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSeb Bacon <seb.bacon@gmail.com>2012-04-16 12:11:59 +0100
committerSeb Bacon <seb.bacon@gmail.com>2012-04-16 12:11:59 +0100
commit48995a8d786418900cb6552eae009bc5b91f6fd5 (patch)
tree91a05f89d851bc553911755b2ddc5b8e068f0964
parent35b0974bd32fd6f56e4ee6f335ba260df5e8ae1b (diff)
Sort the list of status so we can test its output more reliably
-rw-r--r--app/models/track_thing.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/track_thing.rb b/app/models/track_thing.rb
index 58d70ed86..b03055b5c 100644
--- a/app/models/track_thing.rb
+++ b/app/models/track_thing.rb
@@ -108,7 +108,7 @@ class TrackThing < ActiveRecord::Base
end
descriptions = []
if varieties.include? _("requests")
- descriptions << _("requests which are {{list_of_statuses}}", :list_of_statuses => Array(statuses).join(_(' or ')))
+ descriptions << _("requests which are {{list_of_statuses}}", :list_of_statuses => Array(statuses).sort.join(_(' or ')))
varieties -= [_("requests")]
end
if descriptions.empty? and varieties.empty?