Added a sort method call to thread fn. in topmofn...