- auto i = traces.begin();
- i = copy(sigs.begin(), sigs.end(), i);
-#ifdef ENABLE_DECODE
- i = copy(decode_sigs.begin(), decode_sigs.end(), i);
-#endif
+ stable_sort(traces.begin(), traces.end(),
+ [](const shared_ptr<Trace> &a, const shared_ptr<Trace> &b) {
+ return a->v_offset() < b->v_offset(); });