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.

Sort in insertion order

Featured Replies

I need to sort my result page so that the record that the oldest record shows on top, the second one afterwards, and so on.

I found that if no sort field is specified I get just the opposite of that. I could use the ascending/descending sort option to solve this problem but "-sortorder" doesn't seem to work when no sortfield is selected.

Any ideas?

Thank you in advance

Technically, an "unsorted" database is actually in chronological order, with the oldest record first and the newest last.

Carefully check your CDML code and see if there is a sort happening somewhere.

Alternatively, define an auto-entered serial number in your file (remember to serialise all the existing records after you define the field) and sort by this serial number ascending in the CDML.

  • Author

first, thank you for your promtly answer Vaughan.

You are right. Unsorted is just how you say: the OLDER the first, the newer the last. I was wrong when watching at my records.

Anyway, it's good to know that if I wanted the opposite I would have to use the autoenter ID number from filemaker itself.

Hi soci222, To reverse sort (descending) you can also create a calculation number called RecordID with Status(CurrentRecordID). I don't usually like to encourage calculations if other more resource-friendly means are possible but it's a down-and-dirty way to accomplish the job quickly. And I find myself using RecordID for specific relationship needs and its value outweights the small resource cost. wink.gif

MoonShadow

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.