[#380] Fixed the wrong order when clicking "order by due date" item and modified the updated bug when user add a new tag.