You are given a list names of strings. Each name has exactly two words separated by a single space: a first name and a last name (for example "John Smith").
For each name, build an abbreviated form "F. Last", where F is the first character of the first name followed by a period and a space, and Last is the last name kept unchanged.
Return a list of these abbreviated strings sorted in ascending (alphabetical) order using normal string comparison.
NOTE: This is a function-type question — you only write the function. Do not read input or print anything; a hidden checker calls your function and checks its return value.
Arguments
['John Smith', 'Alice Brown']
Returns
['A. Brown', 'J. Smith']