Added .gitignore.
Fixed hash sorting problem on perl 5.18.