Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

sorting in a relationship

Featured Replies

If I have table x related to table y which is related to table z and I'm looking at these 2 relationships within the relationship graph, i have two separate opportunities to SORT table Y by some criteria. If I want table y to be sorted, does it matter which relationship specifies this, and if so, what's the difference? Assume that x is a parent to y and y is a parent to z (if that matters).

Related to this question, I have a table that is sorts records by ID descending. So am I correct in assuming that 'previous/next record' commands in the scripts will work with that descending order and thus not operate chronologically? in other words, prev/next does not refer to older/newer as it would if sorted ascending. ?

I am afraid you have a fundamental misconception here: the sort order defined for a relationship affects the relationship only. It determines the order in which records from the specified TO will be sorted, when accessed through that relationship.

This has nothing to do with the sort order of the same records, when accessed directly through a layout of that table. Which record happens to be previous/next depends solely on the sort order of the found set.

  • Author

i see. thanks for clarifying. am i correct that sort is only meaningful in those relationships

1. for either table if the relationship is many-many or

2. for the daughter table if one-many

Its not meaningful for a parent table.

Basically, that's correct. But it can get a bit more complex than that: the sort order of the parent may make no difference to the child (it has only one parent) - but it can be very significant to other TO's down the line that access the parent records through the child (for example, when the child is a join table).

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.