Sort lint attributes to print them in a more sane way

Closes #7818
auto merge of #7843 : alexcrichton/rust/better-lint-help, r=huonw

Closes #7818