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.

Under construction. Email me your wish list for improvements.