Changed sort parameter to be a string key into an array of sorts.