Keep the order of durations in SpanStore.getTracesDuration.