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 multiple criteria

Featured Replies

Hello

Not sure if this is the correct topic, but here it goes:

 

The search returns a set of records and the two fields I'd like to sort them on are 'locked' and a time field 'TIME'.

 

'Locked=1' means that the record does not need any attention now but should still be listed, and the time it a deadline.

 

I can sort on one of them without a problem, but I would like to know if I can sort them like this:

 

REC#1 -> LOCKED = 0  - TIME is 16:00

REC#2 -> LOCKED = 0  - TIME is 16:50

REC#3 -> LOCKED = 0  - TIME is 17:00

REC#4 -> LOCKED = 0  - TIME is 17:20

REC#5 -> LOCKED = 0  - TIME is 18:00

REC#6 -> LOCKED = 1  - TIME is 13:00

REC#7 -> LOCKED = 1  - TIME is 14:20

REC#8 -> LOCKED = 1  - TIME is 15:00

 

Is this possible?

Not sure if you're really asking the question for this answer, but here goes:

 

Menu Records -> Sort Records … ; Sort Order: Locked (ascending), Time (ascending)

  • Author

hmm I think I did forget to ask the question… sorry about that.

 

Your answer is correct and the same as I had done it. But it's not working. In that order, Time (asc) is not working anymore.

The other way around, the locked is not working. Tried to separate the two in two different sorts in a script, but no luck.

The Time field is from a related record, so I figured that might be a problem and then populated a field in the parent DB with

the same time and tried to sort again, not working… very odd. I'm working at it for over an hour now.

 

note

I was about to post some images for you but my machine froze up. So after opening and checking the data, it now works ?!?

very very odd. Working now - thank you very much, Eos!

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

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.