class FileNode { public displayName : string ; public filePath : string ; public tags : string [ ] ; public pathToNode : string ; public key : string ; constructor ( key , filePath , pathToNode , tags , displayName ) { this . displayName = displayName ; this . key = key ; this . filePath = filePath ; this . pathToNode = `${ pathToNode }/${ this . key }` ; this . tags = tags ; } } interface IFileNodeSort { ( fileA , fileB ) : number ; } const fileNodeSort = ( fileA , fileB ) => { if ( fileA . filePath < fileB . filePath ) { return - 1 ; } else if ( fileA . filePath > fileB . filePath ) { return 1 ; } else { return 0 ; } } ; export { FileNode , fileNodeSort } ;