Brian Dunning's FileMaker Custom Functions

SortValue ( Value ; AscDes )

Sort return-separated text.

  Average rating: 4.0 (3 votes) Log in to vote

Koji Takeuchi   Koji Takeuchi - Show more from this author
TonicNote, Inc.
https://tonicnote.com

Share on Facebook Share on Twitter

  Sample input:
SortValue ( "aa¶cc¶bb¶ab" ; "asc" )
  Sample output:
aa
ab
bb
cc

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

description:
Sort return-separated text.
Not requiring any other custom functions.
ex1:
SortValue ( "aa¶cc¶bb¶ab" ; "asc" )
-> "aa¶ab¶bb¶cc"
ex2:
SortValue ( "aa¶cc¶bb¶ab" ; "des" )
-> "cc¶bb¶ab¶aa"
ex3:
SortValue ( "5¶10¶2¶1" ; "asc" )
-> "1¶10¶2¶5"

 

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: