Fix for bug 105773: Email addresses in the CC list are now sorted case-insensitively

Patch by Adam Kennedy <bugzilla@ali.as> r= justdave x2
parent 1477ad4e
...@@ -248,7 +248,7 @@ sub toArrayOfStrings { ...@@ -248,7 +248,7 @@ sub toArrayOfStrings {
push @result, &::DBID_to_name($i); 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) # return this set in string form (comma-separated and sorted)
......
...@@ -248,7 +248,7 @@ sub toArrayOfStrings { ...@@ -248,7 +248,7 @@ sub toArrayOfStrings {
push @result, &::DBID_to_name($i); 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) # return this set in string form (comma-separated and sorted)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment