diff --git a/gtk/inspector/css-node-tree.c b/gtk/inspector/css-node-tree.c index 7da3c437a6..c006069f93 100644 --- a/gtk/inspector/css-node-tree.c +++ b/gtk/inspector/css-node-tree.c @@ -610,12 +610,18 @@ compare_name_cb (gconstpointer a, const CssProperty *prop_b = b; gboolean a_var = prop_a->name[0] == '-' && prop_a->name[1] == '-'; gboolean b_var = prop_b->name[0] == '-' && prop_b->name[1] == '-'; + gboolean a_gtk = prop_a->name[0] == '-' && prop_a->name[1] != '-'; + gboolean b_gtk = prop_b->name[0] == '-' && prop_b->name[1] != '-'; int ret; if (a_var && !b_var) ret = 1; else if (b_var && !a_var) ret = -1; + else if (a_gtk && !b_gtk) + ret = 1; + else if (b_gtk && !a_gtk) + ret = -1; else ret = g_utf8_collate (prop_a->name, prop_b->name);