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 male female every other one

Featured Replies

  • Newbies

Is there a way to sort my student records so that they alternate male, female.

[ February 06, 2002, 03:31 PM: Message edited by: jlazyr ]

Try this idea:

Make a field in the database, lets call it "sortfield".

Find all the males in the database (you need to have a way to identify males and females) and sort them however you want.

In the found set, perform a Replace by serial number, start at 1 and increment by 2 so the males are all the odd numbers.

Perform a find for all the females, sort the records, perform a replace by serial number starting at 2 and incrementing by 2 so they have all the even numbers.

Now sort the database by the sort field. The males and females sound be interleaved with males first.

LIMITATIONS: because this method relies heavily on the Replace command, it could fail in multi-user environment. The method described should work for all records, it may also work for a subset of the records.

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.