insert new row at the right place - sort the task client side by due date and priority