Added case insensitivity to sorter. Also fooled with some pylint analysis.