Added sorting for photo table lists.