sorting when adding new entries and implemeneted an intersection.
1.3 done