diff --git a/Server/Attributes.cs b/Server/Attributes.cs index d27d4ce80..80196b3ee 100644 --- a/Server/Attributes.cs +++ b/Server/Attributes.cs @@ -86,7 +86,16 @@ namespace Server if ( y == null ) return -1; - return GetPriority( x ) - GetPriority( y ); + var xPriority = GetPriority( x ); + var yPriority = GetPriority( y ); + + if ( xPriority > yPriority ) + return 1; + + if ( xPriority < yPriority ) + return -1; + + return 0; } private int GetPriority( MethodInfo mi )