:+1: to a whitelist based solution. Easy to understand/extend, and would reduce the complexity of the validateSort method, if nothing else.