Brian Dunning's FileMaker Custom Functions

BubbleSort ( inputValues ; iterations )

Sorts a list of return-separated values.

  Average rating: 3.8 (38 votes) Log in to vote

Greg Lane   Greg Lane
The Moyer Group
http://www.moyergroup.com

Share on Facebook Share on Twitter

  Sample input:
BubbleSort ( "orange
plum
apple
grape" ; 4 )
  Sample output:
apple
grape
orange
plum

  Function definition: (Copy & paste into FileMaker's Edit Custom Function window)

BubbleSort takes a return-separated list of values and returns a sorted list. The iterations value should be initially set to the value of ValueCount ( inputValues ).

The bubble sort algorithm is simple to implement but it becomes fairly slow as the number of values increases.

Note: The BubbleSort function requires the BubbleSort_SlideValue function.

 

Comments

Log in to post comments.

 

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

Support this website.

This library has been a free commmunity resource for FileMaker users and developers for 20 years. It receives no funding and has no advertisements. If it has helped you out, I'd really appreciate it if you could contribute whatever you think it's worth: