SQL injection in sort column

Code reviewMedium20 min

Your task

Review this Python data-access function used by a search endpoint.