sorted direction on carousel callback