Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/Paket.Core/Domain.fs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
module Paket.Domain

open System
open System.IO
open System.Text.RegularExpressions

Expand Down Expand Up @@ -27,7 +28,7 @@ type PackageName =
interface System.IComparable with
member this.CompareTo that =
match that with
| :? PackageName as that -> this.GetCompareString().CompareTo(that.GetCompareString())
| :? PackageName as that -> StringComparer.Ordinal.Compare(this.GetCompareString(), that.GetCompareString())
| _ -> invalidArg "that" "cannot compare value of different types"

/// Function to convert a string into a NuGet package name
Expand Down Expand Up @@ -82,7 +83,7 @@ type GroupName =
interface System.IComparable with
member this.CompareTo that =
match that with
| :? GroupName as that -> this.GetCompareString().CompareTo(that.GetCompareString())
| :? GroupName as that -> StringComparer.Ordinal.Compare(this.GetCompareString(), that.GetCompareString())
| _ -> invalidArg "that" "cannot compare value of different types"

/// Function to convert a string into a group name
Expand Down