Examine sort field for sensitive fields

Like with the selection field, the sort field poses a risk for SQL
injection attacks that can expose sensitive information. Filter the
supplied sort argument for sensitive fields and check permissions if
it contains any.

Bug: 135268868
Test: CTS
Change-Id: I3ded273feca374410bbe33312e5148ff5096975c
Merged-In: I3ded273feca374410bbe33312e5148ff5096975c
Merged-In: Ia7be0ecdfca5e7adf6163dc015a413a98f1b9287
(cherry picked from commit 1e324464f36eff033af64099fe6bb6a7d1ab0463)
1 file changed