Get the number of atomic elements in the expression
(expr: Expression)
| 539 | if (def.operator.commutativeOrder) |
| 540 | return [...xs].sort(def.operator.commutativeOrder); |
| 541 | |
| 542 | return [...xs].sort(order); |
| 543 | } |
| 544 | |
| 545 | /** |
| 546 | * Sort the terms of a polynomial expression (`Add` expression) according |
| 547 | * to the deglex polynomial ordering |