| 1465 | } |
| 1466 | |
| 1467 | static int cmp_node_by_name(const void *a, const void *b) { |
| 1468 | int ia = *(const int *)a; |
| 1469 | int ib = *(const int *)b; |
| 1470 | int c = strcmp(safe_str(g_sort_nodes[ia].name), safe_str(g_sort_nodes[ib].name)); |
| 1471 | if (c) { |
| 1472 | return c; |
| 1473 | } |
| 1474 | return cmp_i64(g_sort_nodes[ia].id, g_sort_nodes[ib].id); |
| 1475 | } |
| 1476 | |
| 1477 | static int cmp_node_by_file(const void *a, const void *b) { |
| 1478 | int ia = *(const int *)a; |