| 1430 | } |
| 1431 | |
| 1432 | static int cmp_node_by_qn(const void *a, const void *b) { |
| 1433 | int ia = *(const int *)a; |
| 1434 | int ib = *(const int *)b; |
| 1435 | int c = strcmp(safe_str(g_sort_nodes[ia].qualified_name), |
| 1436 | safe_str(g_sort_nodes[ib].qualified_name)); |
| 1437 | if (c) { |
| 1438 | return c; |
| 1439 | } |
| 1440 | return cmp_i64(g_sort_nodes[ia].id, g_sort_nodes[ib].id); |
| 1441 | } |
| 1442 | |
| 1443 | // --- Edge index comparators --- |
| 1444 |