Fix sorting of historical tasks table #108