Lasso Soft Inc. > Home

-SortRandom

-SortRandom sorts returned records randomly. Is used in place of the -SortField and -SortOrder parameters. Does not require a value.

  • Syntax
  • Parameters
[Inline: -Search, -SortRandom, ...]

[Inline: -FindAll, -SortRandom, ...]
Examples

To sort search results randomly:

This example sorts records found in a search in a random order.

[Inline: -Findall, -Database='Contacts', -Table='People',  -Keyfield='ID',-SortRandom]
 	[Records]		
    [Field:'ID'] 	
  [/Records]
[/Inline]

Result:
2 5 8 9 3 1 6 7 4
Tag Link -SortRandom Category Database
Type Command Data Source MySQL
Support Preferred Version 6.0
Output Type None Security None
Implementation LCAPI Sets Lasso 8.5, Lasso 8.0, Lasso 7.0, Lasso 6.0

Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.

LassoSoft Inc. > Home

 

 

©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft