I'm interested in your design of this method.  Since you're passing in the array and set it feels like this method could almost be a class method (Comparator.compare(file1, file2)).  The other option would be to not accept any arguments, store the array and set as state in the object and treate this method as a private method.  Thoughts?