incorporating Tom's update for the recursiveSort function.  Will commit test updates in the morning