Of different approaches to sorting a .gitignore file
.ackrc
*.log
coverage/*
*flymake*
public/system/*
config/database.yml
.rvmrc
$ sort .gitignore
.ackrc
config/database.yml
coverage/*
*flymake*
*.log
public/system/*
.rvmrc
$ cat .gitignore
*.log
*flymake*
.ackrc
.rvmrc
config/database.yml
coverage/*
public/system/*
#EOF