The image attached contains a sorting problem and its solution. I'm having a hard time understanding the very last bullet point of the solution in determining Big O.
Why do we need to compare as well as sort? Isn't sorting inclusive of string comparison already?
I'm confused by why this part is essential, and how we got to the below Big O formula:
You should also take into account that you need to compare the strings. Each string comparison takes 0 (s) time.

Normally, sorting an array of numbers takes $O(n\log n)$. However, in case you are sorting an array of string, it takes $O(s\cdot nlog n)$, where $s$ is the length of the string. This is because when you are sorting an array of numbers, say $[1, 3, 2, 1]$, you swap elements by comparing them. And comparing numbers takes $O(1)$ time. However, in case of an array of string, comparing which string is lexicographically larger takes $O(s)$ time, For example $[abcde, abcdf, abceg]$, when comparing two strings, say $abcde$ and $abcdf$, you are comparing them characters by characters. So it takes $O(s)$ time.