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.

Featured Replies

  • Newbies

Hi,

How can I sort items in a field. For example, 10 words are enterd into a field, how can i get those words sorted alphabetically when it comes time to print? I can't find any posts relating to this.

Many thanks.

There is no built-in way to do this. A lot depends on how the words are delimited. Delimiting by spaces is probably not going to be much use, as you won't be able to enter word pairs or phrases. Best use commas or returns.

You could copy the text to a global field then perform a scripted "ripple sort" on the string. It's been years since I did a ripple sort (that was in 1982 using Basic).

I'll leave it to others to fill in the minor details. wink.gif

Set up a self join relationship based on a unique record ID such as serial number. So, each record relates exactly to itself. Then make a value list based on this relationship using the values from the field you want to sort. Then, to sort the items, just execute a script that sets the field contents to the ValulistItems() function using that valuelist. See attached file.

In this example you have to have the items delimited with carriage returns. If you want to use commas or spaces, then You will have to create an intermediate calculated field which substitutes your delimiter character with a paragraph marker. Like so:

ConvertedData = Substitute(FieldtoSort, ",","

SortFieldItems.fp5.zip

A value list will remove duplicate entries...

New York

London

Gosford

London

... will become...

Gosford

London

New York

... which may or may not be OK.

  • Author
  • Newbies

Hi BobWeaver,

Sweet. Works great. Thanks!

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.