| 1485 | } |
| 1486 | |
| 1487 | static int cmp_node_by_qn(const void *a, const void *b) { |
| 1488 | int ia = *(const int *)a; |
| 1489 | int ib = *(const int *)b; |
| 1490 | int c = strcmp(safe_str(g_sort_nodes[ia].qualified_name), |
| 1491 | safe_str(g_sort_nodes[ib].qualified_name)); |
| 1492 | if (c) { |
| 1493 | return c; |
| 1494 | } |
| 1495 | return cmp_i64(g_sort_nodes[ia].id, g_sort_nodes[ib].id); |
| 1496 | } |
| 1497 | |
| 1498 | // --- Edge index comparators --- |
| 1499 |