nl_tokens: https : // github . com / thelgevold / angular - 2 - samples
pl_tokens: function tableDataSort ( key , data , direction ) { var dataCopy = data . map ( function ( i ) { return Object . assign ( { } , i ) ; } ) ; dataCopy . sort ( function ( a , b ) { var sortResult ; var aTmp = a [ key ] ; var bTmp = b [ <mask> ] ; if ( typeof aTmp === 'number' && typeof bTmp === 'number' ) { sortResult = sort ( aTmp , bTmp ) ; } else { sortResult = sort ( ( aTmp + '' ) . toLowerCase ( ) , ( bTmp + '' ) . toLowerCase ( ) ) ; } return sortResult * direction ; } ) ; return dataCopy ; }