and sorted is a function, not a method