Sort the indices while pretty-printing a trace
Merge pull request #1394 from chetan51/issue-1393

Sort the indices while pretty-printing a trace