A portal implies that there is more than one record related to the current record on the layout. If that is the case, which value from which related record in that portal should determine the sort order?
What should happen is that the "first" related record will supply the value used to determine the sort order. That "first" record may or may not be the first record shown in the portal.
The relationship is Office (one) to Dentist (many). The roster report is pulling the names of the dentists at each office (Dentist::Name_Full LF). I filtered the portal to only display records which are marked as the main dentist (which is done on the Dentist table/layout). So there are multiple records related to the current record, but only one is displayed in the portal.
Is there a way to change which value determines the sort order? Or is there a simpler method of setting this up that I'm overlooking/overthinking?
You could specify a sort order in the relationship (Open Manage | Database | Relationships and double click the relationship line.) that sorts the related records in such a way that the main dentist is the first related record.
You could, instead, define an additional relationship that only matches to "main" dentists. You can setup a new occurrence of your portal's table for this relationship and include a calculation field in Office that matches to the field that identifies the Main dentist so that you are only matching to the main dentis. THen you can refer to a field in this new occurrence of dentist for your sort order.
And if you are using FileMaker 12, you can use an ExecuteSQL calculation in a calculation field in Office that only returns the name of the Main dentist and then you can sort on this field for your sort order.
I tried sorting the relationship before and it didn't work. I just tried again because of your comment and it worked like a charm! I apparently sorted ascending rather than descending before. This has been frustrating me for 2 days. THANK YOU!!!!