extract method
Introduce SessionSorter