Add secondary sort criteria when sorting CPU samples
Add secondary sort criteria when sorting CPU samples

Due to recent changes in the behavior of Array.p.sort, it seems that
some devtools layout tests became flaky.

Making the timestamp sorting stable seems (emperically) to fix or at
least improve the flakiness.

Change-Id: Ife60b893d0bcb230301dce01f504b46eff9d43cf
Reviewed-on: https://chromium-review.googlesource.com/1092470
Reviewed-by: Alexei Filippov <52e51c43e283548b762e3c9dd9a4600768db9fb4@chromium.org>
Commit-Queue: Simon Zünd <38944668e9e2ca98ccd0275b53370f90fa55c113@google.com>
Cr-Original-Commit-Position: 972c6d2dc6dd5efdad1377c0d224e03eb8f276f7@{#565938}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: e417adddd3d5ab324aa8f11fd11e46df835ef198
ChromeDevTools/devtools-frontend,ChromeDevTools/devtools-frontend,dart-archive/devtools-frontend,ChromeDevTools/devtools-frontend,dart-archive/devtools-frontend,dart-archive/devtools-frontend,dart-archive/devtools-frontend,dart-archive/devtools-frontend,ChromeDevTools/devtools-frontend,dart-archive/devtools-frontend,ChromeDevTools/devtools-frontend,ChromeDevTools/devtools-frontend