I have built an app to e-mail project specific documents to the user.
I can outline the app quick:
The welcoming screen has a gallery (BrowseGallery1) that shows a list of projects (source is a SharePoint list with project name, and number)
When you select the project you want, you navigate to the next screen which has a new gallery (Gallery1). The gallery in this screen uses a document library (ProjForPADocs) as the source.
You then get a list of all of the files that have the same project number (they are .pdf files).


To get the items in the gallery to display the name of the files, I have added a title (Title3), where the Text = ThisItem.’File name with extension’

The gallery then lists every .pdf connected to that project.
My problem is, I can not figure out how to get the gallery to sort alphabetically. Right now it just lists up the .pdf’s in any random order.
I have tried sorting like I do when I have pure SharePoint lists, but that doesn’t work with items in a gallery.
Any tips? I think I have to combine the sort code to include both the source (ProjForPADocs), and the title (Title3) somehow.
Thanks in advance.