给定一段文本，提取出所有人名和对应电话号码，并按人名字母顺序输出。若电话号码格式不符，输出错误信息“Invalid phone number”。


文本: 
Mr. John Doe can be reached at 555-123-4567, and his colleague Jane Smith can be reached at 555-222-3333.
Jane Smith: 555-222-3333, John Doe: 555-123-4567