Add sorting configuration.