Fixed issue with Sorting of Sessions

Fixed issue with Sorting of Sessions