diff options
author | Patrick J Cherry <patrick@bytemark.co.uk> | 2012-11-30 13:17:16 +0000 |
---|---|---|
committer | Patrick J Cherry <patrick@bytemark.co.uk> | 2012-11-30 13:17:16 +0000 |
commit | 5a099132ff0fffceda0eec2921a513b10070beb7 (patch) | |
tree | 00a9bff576de3c0936b4d26cbe486c0f98b83266 /lib/mauve/web_interface.rb | |
parent | 1b6d738c7d2115e73f8d54431b2f157a9ce03011 (diff) |
Added sort to search.
Diffstat (limited to 'lib/mauve/web_interface.rb')
-rw-r--r-- | lib/mauve/web_interface.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mauve/web_interface.rb b/lib/mauve/web_interface.rb index 889c676..3eedaea 100644 --- a/lib/mauve/web_interface.rb +++ b/lib/mauve/web_interface.rb @@ -557,7 +557,7 @@ EOF %w(source subject alert_id summary).each do |field| @alerts += Alert.all(field.to_sym.send("like") => "%#{@q}%") end - + @alerts = @alerts.sort @title += " #{@alerts.count} records found." end |