Skip to content

Commit 3f864cd

Browse files
authored
Merge pull request #26 from KageShiron/master
CustomSorter should return 0 when x equals y
2 parents 6ddb766 + f3b143c commit 3f864cd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/MicroBatchFramework/BatchEngine.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,11 @@ class CustomSorter : IComparer<MethodInfo>
397397
{
398398
public int Compare(MethodInfo x, MethodInfo y)
399399
{
400+
if (x.Name == y.Name)
401+
{
402+
return 0;
403+
}
404+
400405
var xc = x.GetCustomAttribute<CommandAttribute>();
401406
var yc = y.GetCustomAttribute<CommandAttribute>();
402407

0 commit comments

Comments
 (0)