Added sort by date functionality to workout history table