Updated sorting example to be consistent with previous examples