The code to import trace formatted events intentionally re-orders events in order to make it easier at flamegraph construction time to order the pushes and pops of frames. It turns out that this re-ordering results in incorrect flamegraphs being generated as shown in #251. This PR fixes this by avoiding re-ordering in situations where it isn't necessary.