Instead of sorting tracks by rinv, sort tracks by seed so that we only compare tracks when their seeds are the same.
Instead of sorting tracks by rinv, sort tracks by seed so that we only compare tracks when their seeds are the same.