[profiler] Sort by end interval as well when parsing CPU trace (#37297)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/37297
Test Plan: Imported from OSS
Reviewed By: ngimel
Differential Revision: D21245463
Pulled By: jamesr66a
fbshipit-source-id: 8d307eaa32fa960b93dfd9a3b0b4c767fd903094