sewguide.com
Carefully stitch along the frayed edge using a hand sewing thread and needle matching the color of the shirt
Find a patch that matches your shirt's fabric and iron it on the frayed area
Sew a new collar in a fabric matching your shirt and reattach