Differences

This shows you the differences between the selected revision and the current version of the page.

ptpscript:functions:compare 2006/05/27 16:24 ptpscript:functions:compare 2007/01/24 10:15 current
Line 14: Line 14:
  * [[PTPScript:Types:Number|Number]] ''method'' - Sort method options.   * [[PTPScript:Types:Number|Number]] ''method'' - Sort method options.
    * ''0'' (default) - Compare items using standard comparison.     * ''0'' (default) - Compare items using standard comparison.
-    * ''1'' - Compare items as case-sensitive strings. +    * ''1'' - Compare items numerically. 
-    * ''2'' - Compare items as case-insensitive strings  +    * ''2'' - Compare items as case-sensitive strings. 
-    * ''3'' - Compare items as case-sensitive strings, using [[http://sourcefrog.net/projects/natsort/|natural ordering]]. +    * ''3'' - Compare items as case-insensitive strings. 
-    * ''4'' - Compare items as case-insensitive strings, using [[http://sourcefrog.net/projects/natsort/|natural ordering]]. +    * ''4'' - Compare items as case-sensitive strings, using [[http://sourcefrog.net/projects/natsort/|natural ordering]]. 
-  * [[PTPScript:Types:Number|Number]] ''length'' - The optional ''length'' parameter only has any effect if ''method'' is ''1'' or ''2''. If so, it will determine how many of the characters from each String will be used for comparison.+    * ''5'' - Compare items as case-insensitive strings, using [[http://sourcefrog.net/projects/natsort/|natural ordering]]
 +    * ''6'' - Compare items as case-sensitive strings, according to locale. 
 +    * ''7'' - Compare items as case-insensitive strings, according to locale
 +  * [[PTPScript:Types:Number|Number]] ''length'' - Determines how many of the characters from each String will be used for comparison.
\\ \\
Line 30: Line 33:
Returns a Number signifying which of the two terms being compared is greater. Returns a Number signifying which of the two terms being compared is greater.
-~~DISCUSSION~~+
 
 
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki