Cleaned up hidden file sort method. Added file Close calls.