aboutsummaryrefslogtreecommitdiff
path: root/lib/mauve
diff options
context:
space:
mode:
authorPatrick J Cherry <patrick@bytemark.co.uk>2012-11-30 13:17:16 +0000
committerPatrick J Cherry <patrick@bytemark.co.uk>2012-11-30 13:17:16 +0000
commit5a099132ff0fffceda0eec2921a513b10070beb7 (patch)
tree00a9bff576de3c0936b4d26cbe486c0f98b83266 /lib/mauve
parent1b6d738c7d2115e73f8d54431b2f157a9ce03011 (diff)
Added sort to search.
Diffstat (limited to 'lib/mauve')
-rw-r--r--lib/mauve/web_interface.rb2
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