support passing in 'sort' as both a class property and as an option.