dynamic add photo sort.