Shopping Cart

Search:

Signup

Contact

FileMaker is a registered trademark of FileMaker, Inc. in the U.S. and other countries.

# FileMaker Pro Custom Functions

SortAsymptote ( ordinal )

Rate this function:

Average rating: 4.6  (34 votes)
Discuss this Custom Function

Jeremy Bante,
https://github.com/jbante/

Limits an ordinal to (-1,1), for nested sort calculations

Sample Input:
 List ( SortAsymptote ( 1 ); SortAsymptote ( 2 ); SortAsymptote ( 5 ); SortAsymptote ( 10 ); SortAsymptote ( 20 ); SortAsymptote ( 50 ); SortAsymptote ( 100 ); SortAsymptote ( 1000 ); SortAsymptote ( 10000 ); SortAsymptote ( 100000 ); SortAsymptote ( 1000000 ); )
Sample Output:
 .4093838908503588 .5234946419594956 .6418029522161849 .7057001703361976 .752752020690265 .797235329374854 .8219094323976252 .8735578447045257 .9020610312524535 .920082701393012 .9325031743866805

Then copy & paste into FileMaker Advanced's Edit Custom Function window.

## Description:

Limits the range of ordinal to fit within (-1,1). This can be useful when creating nested custom sort orders, where "child" records have a numeric sort order, but must also respect the sort order of "parent" records, so that child records with the same parent record cluster together. In these cases, this function can be used to restrict the child sort order to be smaller than the order of magnitude for the parent sort order. For example, where Parent::sort is known to contain integer values:

Parent::sort + SortAsymptote ( Child::sort ) //= Child::sortCalc

Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.

This is my Custom Function and I want to edit it

## Discuss:

There are no comments yet. Be the first to post a comment about this Custom Function! Please try to keep it brief & to the point. Anyone can post:

 Your Name: City/Location: Comment: characters left. If you paste in more than 1500 characters, it will be truncated. Discuss the function - advertisements and other useless posts will be deleted. Answer 1 + 3 =
 Search for Custom Functions:

 Download the Custom Function Dashboard Widget for OS X Keep all the latest Custom Functions right at your fingertips!

 1. HexUUIDToNum_cf (_uuid) (Sat, Jun 16, 1:55pm) 2. httpResponseCode ( responseHeaders ) (Tue, Jun 12, 10:40pm) 3. FindDuplicateCharacters ( string ) (Fri, Jun 08, 5:01pm) 4. FieldRepetitionLast ( field ; maxRepetition ) (Wed, Jun 06, 6:05pm) 5. CountModifiedRecords ( NameTimestampField ; StartTimestamp ; EndTimestamp ) (Mon, May 28, 8:23am) 6. JSONArrayLength ( JSONArrayStr ) (Fri, May 25, 7:46am) 7. interpolation (y1; y2; y3; x1; x2; x3; x1y1; x2y1; x1y2; x2y2; rnd) (Sat, May 19, 3:55am) 8. @JSONFormatElements ( json ) (Tue, May 15, 3:31am)