added logic to recalculate distance between timeslot locations when resorting the timeslots