We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 901a6ff commit fe9c672Copy full SHA for fe9c672
src/options/sort-order.js
@@ -171,7 +171,8 @@ module.exports = {
171
172
_getSortablePropertyName(node) {
173
if (node.is('declaration')) {
174
- let property = node.first('property').first();
+ let property =
175
+ node.first('property') ? node.first('property').first() : node.first();
176
return property.is('variable') ? '$variable' : property.content;
177
}
178
0 commit comments