update todo
sorted todo by priority