add comparator function to gist_files collection