| 
        
        Parameter
         | 
      
        
        Type
         | 
      
        
        Description
         | 
     
| 
        
        IN
         | 
      ||
| 
        
        hValExp
         | 
      
        
        DAM_HVALEXP
         | 
      
        
        ORDER BY value expression handle.
         | 
     
| 
        
        OUT
         | 
      ||
| 
        
        piResultColNum
         | 
      
        
        int *
         | 
      
        
        The result column number.
         | 
     
| 
        
        piSortOrder
         | 
      
        
        int *
         | 
      
        
        The sort order of the ORDER BY column:
        
       
        SQL_ORDER_ASC
        
       
        SQL_ORDER_DESC
         | 
     
| 
        
        RETURN
         | 
      ||
| 
        
        int
         | 
      
        
        DAM_SUCCESS - on success
        
       
        DAM_FAILURE - on failure
         |