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 fe9c672 commit cbd6815Copy full SHA for cbd6815
src/options/sort-order.js
@@ -171,8 +171,10 @@ module.exports = {
171
172
_getSortablePropertyName(node) {
173
if (node.is('declaration')) {
174
- let property =
175
- node.first('property') ? node.first('property').first() : node.first();
+ let property = node.first('property');
+ if (property === null) property = node.first('customProperty');
176
+
177
+ property = property.first();
178
return property.is('variable') ? '$variable' : property.content;
179
}
180
0 commit comments