function( val, num, max ) {
         if ( max ) {
            // make sure the text value is greater than the max numerical value (max)
            var indx,
             len = val ? val.length : 0,
             n = max + num;
            for ( indx = 0; indx < len; indx++ ) {
               n += val.charCodeAt( indx );
            }
            return num * n;
         }
         return 0;
      }
function( val, num, max ) {
         if ( max ) {
            // make sure the text value is greater than the max numerical value (max)
            var indx,
             len = val ? val.length : 0,
             n = max + num;
            for ( indx = 0; indx < len; indx++ ) {
               n += val.charCodeAt( indx );
            }
            return num * n;
         }
         return 0;
      }
function ( val , num , max ) { if ( max ) { // make sure the text value is greater than the max numerical value (max) var indx , len = val ? val . length : 0 , n = max + num ; for ( indx = 0 ; indx < len ; indx ++ ) { n += val . charCodeAt ( indx ) ; } return num * n ; } return 0 ; }
return text string value by adding up ascii value so the text is somewhat sorted when using a digital sort this is NOT an alphanumeric sort
return text string value by adding up ascii value so the text is somewhat sorted when using a digital sort this is NOT an alphanumeric sort