Sort lint attributes to print them in a more sane way

Closes #7818