[PATCH] tracing: Fix cmp_entries_dup() to respect sort() comparison rules