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.
1 parent 5fe621f commit c10f540Copy full SHA for c10f540
src/ordering.jl
@@ -10,7 +10,11 @@
10
11
arglength(a) = length(arguments(a))
12
function <ₑ(a, b)
13
- if !istree(a) && !istree(b)
+ if a isa Term && (b isa Symbolic && !(b isa Term))
14
+ return false
15
+ elseif b isa Term && (a isa Symbolic && !(a isa Term))
16
+ return true
17
+ elseif !istree(a) && !istree(b)
18
T = typeof(a)
19
S = typeof(b)
20
return T===S ? (T <: Number ? isless(a, b) : hash(a) < hash(b)) : nameof(T) < nameof(S)
0 commit comments