CSSTransformers namespace
Classes
Methods
-
static compareValues(a, b) → {number}
-
Compare values.
Parameters:
Name Type Description a
any Value A.
b
any Value B.
Returns:
number -
static nodesSorter(a, b) → {number}
-
Compare nodes. Higher means closer to the start. Sorting rule is simple: atRule > rule > anything else. Same typed nodes are sorted in alphabetic order.
Parameters:
Name Type Description a
ASTNode Node A.
b
ASTNode Node B.
Returns:
number