Added a call to the sortfiles() method. Commented it out for the time being.