From 5a099132ff0fffceda0eec2921a513b10070beb7 Mon Sep 17 00:00:00 2001 From: Patrick J Cherry Date: Fri, 30 Nov 2012 13:17:16 +0000 Subject: Added sort to search. --- lib/mauve/web_interface.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.1