Organize and sort the .gitignore entries.

Keeping things sorted makes it easier when merging similar changes.