Create a function that sorts a list of lists based on the length of each sublist