fix wrong sorting order in photoreports