Sort image names.