Do the actual sorting.

`block` is a list of lists of strings; we sort the inner lists by using the first string inside of them as the key to sort on (the lambda just grabs the first element and makes it case-insensitive).