Test that we sort threads by name when analysing