Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
It sorted out my Apple Music library by finding duplicate songs. Then it merged them together to be only one file of the song. It also found missing tracks as well as orphaned ones.
 
I found something available from the App Store called Tunesweeper and apparently it was free since I had Song Sergeant originally. I found it earlier this week and I was surprised what it did.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.