add gallery sort dialog