Sort:  

I've got a guess for the tricky part. But first I need to compose the math portion of the answer. Look for another comment from me in the next few hours.