added sorting algorithm for tlBlocks.  Worked on activityMain