We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c3081cd + 8e5d0a6 commit 52e86f1Copy full SHA for 52e86f1
src/ordering.jl
@@ -13,7 +13,7 @@ function <ₑ(a, b)
13
if !istree(a) && !istree(b)
14
T = typeof(a)
15
S = typeof(b)
16
- return T===S ? isless(a, b) : nameof(T) < nameof(S)
+ return T===S ? (T <: Number ? isless(a, b) : hash(a) < hash(b)) : nameof(T) < nameof(S)
17
elseif istree(b) && !istree(a)
18
return true
19
elseif istree(a) && istree(b)
0 commit comments