[PATCH 5.10 361/459] tracing: Fix cmp_entries_dup() to respect sort() comparison rules