Issue #12: Preserve thread order when using ThreadDumpFactory