added sortable functioanlity, with recalculations of each timeslot's value