Remove private TimeZoneInfoComparer (dotnet/coreclr#8512)
authorJustin Van Patten <jvp@justinvp.com>
Fri, 9 Dec 2016 00:28:08 +0000 (16:28 -0800)
committerDan Moseley <danmose@microsoft.com>
Fri, 9 Dec 2016 00:28:08 +0000 (16:28 -0800)
commit984bc776edf7b2dcabc6ffaf1b157fb2afc9f57a
treed97b8b3c9b85b5a31583896994dd5d6157082f93
parent37aef581581d8d520288cf5b567f4f34cdc115a0
Remove private TimeZoneInfoComparer (dotnet/coreclr#8512)

Use Comparison<T> instead of IComparer<T> to sort the list of
TimeZoneInfos, which moves the comparison code to the sole place where
it is used, and now that Array.Sort is implemented in terms of
Comparison<T> instead of IComparer<T>, avoids some unnecessary
intermediate allocations.

Commit migrated from https://github.com/dotnet/coreclr/commit/3ff4bd7b39629f6e681d7211dade57369ea586b3
src/coreclr/src/mscorlib/src/System/TimeZoneInfo.cs