Practice ยท 2 of 2
Whitelist the Sort
Implement sorted_users(conn, sort) where sort is 'name' or 'id' โ the ONLY two allowed columns. Map through a whitelist and raise ValueError for anything else. Return list of (id, name).
Difficulty: intermediate
Press Submit to check your solution.
Back to lesson: Practice: Injection-Proof Drills