summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorreed%reedloden.com <>2006-12-27 01:46:04 +0100
committerreed%reedloden.com <>2006-12-27 01:46:04 +0100
commit00b5a1191a9770ed76a915ca0c0ae1838d8c9848 (patch)
tree59d0f03ed9a4d170c6e2d5888cb4d7bbd97d3ec8
parentea564b10347c52a5dfa0422307dcc8049c494436 (diff)
downloadbugzilla-00b5a1191a9770ed76a915ca0c0ae1838d8c9848.tar.gz
bugzilla-00b5a1191a9770ed76a915ca0c0ae1838d8c9848.tar.xz
Bug 364920 - "Watcher list should be sorted alphabetically" [p=reed r=LpSolit a=justdave]
-rwxr-xr-xuserprefs.cgi3
1 files changed, 2 insertions, 1 deletions
diff --git a/userprefs.cgi b/userprefs.cgi
index 555b017a8..14746ada1 100755
--- a/userprefs.cgi
+++ b/userprefs.cgi
@@ -201,7 +201,8 @@ sub DoEmail {
my $watched_ref = $dbh->selectcol_arrayref(
"SELECT profiles.login_name FROM watch INNER JOIN profiles" .
" ON watch.watched = profiles.userid" .
- " WHERE watcher = ?",
+ " WHERE watcher = ?" .
+ " ORDER BY profiles.login_name",
undef, $user->id);
$vars->{'watchedusers'} = $watched_ref;