Sorting function written.
Sorting works
Sorting works and implimented. Closes #15
Some .gitignore tweaks