sort by todo or completed (fronted only)