Brian Dunning's FileMaker Custom Functions

IPToSortableText ( IPaddress )

Returns a sortable textual representation of an IPaddress.

  Average rating: 4.2 (33 votes) Log in to vote

Theo Ros   Theo Ros - Show more from this author

Share on Facebook Share on Twitter

  Sample input:
IPToSortableText ( Get ( SystemIPAddress ) )
  Sample output:
something like ""

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

Returns a sortable textual representation of an IPaddress.
To text-sort IP addresses, you will have to reformat the triplets. Here it is done by adding leading zeros to them.
This will result in textvalues that will sort correctly, for instance in a portal-sort solution.

Syntax: IPToSortableText ( IPaddress )
Return type: Text



Log in to post comments.


Note: these functions are not guaranteed or supported by 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 16 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: