| 1475 | } |
| 1476 | |
| 1477 | static int cmp_node_by_file(const void *a, const void *b) { |
| 1478 | int ia = *(const int *)a; |
| 1479 | int ib = *(const int *)b; |
| 1480 | int c = strcmp(safe_str(g_sort_nodes[ia].file_path), safe_str(g_sort_nodes[ib].file_path)); |
| 1481 | if (c) { |
| 1482 | return c; |
| 1483 | } |
| 1484 | return cmp_i64(g_sort_nodes[ia].id, g_sort_nodes[ib].id); |
| 1485 | } |
| 1486 | |
| 1487 | static int cmp_node_by_qn(const void *a, const void *b) { |
| 1488 | int ia = *(const int *)a; |