The questions is:
Suppose we had an algorithm that took in an array of strings, sorted each string, and then sorted the full array. What would the runtime be?
The solution is given as below:

What i find peculiar in the above solution is this: "You should also take into account that you need to compare the strings. Each string comparison takes O (s) time.There are O (a log a) comparisons, therefore this will take O (a*s log a) time."
What do we need the comparisons for?
It would take s log s time to sort a string. Say there a strings hence the total time taken would be a*s log s
Now the problem has shrunken down to simply sorting a given array which you can do in a log a time, hence the total time taken is a*s log s + a log a = a (s log s + log a)
Where did I go wrong in my thought process?
The question is taken from the book, Cracking The Coding Interview
Each string comparison takes O(s) time. That's the part you missed while reasoning. Comparing twochartakesO(1), comparing two strings takesO(length(shortest string)).