add sort_by_tegs metod for topiks to Main