modfied fetch tally api to sort results in descending order of date