A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Here is how you can get the results:
Place your cursor on Col. B data wherever Names are. Goto Home ribbon>Editing>Sort it in either way.
Alternatively, you can Sort from Pivots settings.