addData and reverse date sorting added