I have the following list
A B
2 David
2 Janice
3 Sam
2 Jonathan*
3 Sally*
2 Bill
2 Paul*
In a new cell, i want the value to read all the names with 2 in column A, in alphabetical order, followed by all the names with 2 in Column A but with * after them, also in alphabetical order. So essentially the result should be
"Bill, David, Janice, Jonathan*, Paul*"
Please help