Does ' It took me really a long time to sort what was going on in my mind out,  she said.' logically set the stage for the hypothesis 'She now knows what was going on in her mind.'
 It took me really a long time to sort what was going on in my mind out,  she said.###She now knows what was going on in her mind.