From: justdave%syndicomm.com <> Date: Sat, 3 Nov 2001 10:05:43 +0000 (+0000) Subject: Fix for bug 105773: Email addresses in the CC list are now sorted case-insensitively X-Git-Tag: bugzilla-2.14.1~31 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=539dccaf5bb64aec3b62794a0524df4901b3c203;p=thirdparty%2Fbugzilla.git Fix for bug 105773: Email addresses in the CC list are now sorted case-insensitively Patch by Adam Kennedy r= justdave x2 --- diff --git a/Bugzilla/RelationSet.pm b/Bugzilla/RelationSet.pm index bfd5724009..8668519b9d 100644 --- a/Bugzilla/RelationSet.pm +++ b/Bugzilla/RelationSet.pm @@ -248,7 +248,7 @@ sub toArrayOfStrings { push @result, &::DBID_to_name($i); } - return sort(@result); + return sort { lc($a) cmp lc($b) } @result; } # return this set in string form (comma-separated and sorted) diff --git a/RelationSet.pm b/RelationSet.pm index bfd5724009..8668519b9d 100644 --- a/RelationSet.pm +++ b/RelationSet.pm @@ -248,7 +248,7 @@ sub toArrayOfStrings { push @result, &::DBID_to_name($i); } - return sort(@result); + return sort { lc($a) cmp lc($b) } @result; } # return this set in string form (comma-separated and sorted)