Program a function that walks through a directory tree and collects the pathnames and sizes of all files of a certain types. Write a function that sorts the results of the first function according to the size of the files.