Skip to content

Commit

Permalink
Merge pull request #26 from KageShiron/master
Browse files Browse the repository at this point in the history
CustomSorter should return 0 when x equals y
  • Loading branch information
neuecc authored Nov 8, 2019
2 parents 6ddb766 + f3b143c commit 3f864cd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/MicroBatchFramework/BatchEngine.cs
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,11 @@ class CustomSorter : IComparer<MethodInfo>
{
public int Compare(MethodInfo x, MethodInfo y)
{
if (x.Name == y.Name)
{
return 0;
}

var xc = x.GetCustomAttribute<CommandAttribute>();
var yc = y.GetCustomAttribute<CommandAttribute>();

Expand Down

0 comments on commit 3f864cd

Please sign in to comment.