remove unnecessary restriction of internal query sorting to the first letter of a string.
Add test for include and exclude modifiers.