| 1420 | } |
| 1421 | |
| 1422 | static int cmp_node_by_file(const void *a, const void *b) { |
| 1423 | int ia = *(const int *)a; |
| 1424 | int ib = *(const int *)b; |
| 1425 | int c = strcmp(safe_str(g_sort_nodes[ia].file_path), safe_str(g_sort_nodes[ib].file_path)); |
| 1426 | if (c) { |
| 1427 | return c; |
| 1428 | } |
| 1429 | return cmp_i64(g_sort_nodes[ia].id, g_sort_nodes[ib].id); |
| 1430 | } |
| 1431 | |
| 1432 | static int cmp_node_by_qn(const void *a, const void *b) { |
| 1433 | int ia = *(const int *)a; |