Add sorting to pictures in series