[NEEDS REWRITE] - removed too complex method for sorting collections.