Navigation:  MCL Reference > List Functions >

ListSortVal( )

Print this Topic Previous pageReturn to chapter overviewNext page

This function is almost identical to ListSort( ) except that, in this function, items (or sub-item), which is to be sorted, will be converted to numbers before sorting. Please see ListSort( ) for other function details.

 

Syntax

ListSortVal(cValueExpr,nItemsReturned,cSeparator,nSortSubItem,cSubItemSeparator)

Or

ListSortVal(cValueExpr,nItemsReturned,cSeparator,nSortSubItem,cSubItemSeparator)

 

Returns

Character

 

Example

ListSortVal("8,4,12",1)

Returns '4,8,12'. Compare ListSort("8,4,12",1), which will return  '12,4,8'. It is because in text comparison, '12' is smaller than '4' (since '1' < '4').

 

 


Page url: http://www.racematenet.com/english/help/index.html?listsortval.htm