corrected compareTo to use file path, not just file name
added appropriate sorting to resolve issue #156
added test case for patch to issue #156