Slide around the output from strace -r to get something that can conveniently be sorted using sort(1).

Without this, the duration of a syscall appears on the line after the syscall.

With this, the duration of a syscall appears on the same line as the syscall.  This enables easier sorting by duration.