SortValues2
Sorts the values in a list ascending or descending.
Average rating: 4.9 (23 votes) Log in to vote
Joshua Paul - Show more from this author
Neo Code http://www.neocode.com |
SortValues ( "apple¶grape¶banana" ; False )
grape¶banana¶apple
Function definition: (Copy & paste into FileMaker's Edit Custom Function window)
NOTE this function written by Theo Ros, this version replaces "list" with "lst"
Returns the list with items sorted
Syntax: SortValues ( list ; sortAscending )
In: list - the return delimited list to search
sortAscending - if True (1), the list will be sorted Ascending,
if False (0), the sorting is Descending
Return type: Text
SortValues ( "apple¶grape¶banana" ; True ) --> "apple¶banana¶grape"
SortValues ( "apple¶grape¶banana" ; False ) --> "grape¶banana¶apple"
This sort uses functions MinValue() and MaxValue()
Comments
Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.