cmp tax with date check replaced by mysort funct