added the function to remove coded results and sort coded results by date on which they are added