Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

402
Views
La clasificación no funciona para MUI Data Grid: Data Grid sortComparator dando indefinido

Estoy tratando de ordenar datos con valores anidados en una cuadrícula de datos, pero no estoy definido en sortComparator of Data Grid Columns

Código: Configuración de datos de columna:

 { headerName: 'Title', field: `${this.props.type}.title`, width: 500, type: "string", renderCell: (valueReceived) => this.getImageorVideoLogo(valueReceived.row), sortComparator: this.titleSorting } titleSorting = (a,b)=>{ console.log(a); console.log(b); }

Cuadrícula de datos:

 <DataGrid rows={rowsDataGrid} columns={columnsDataGrid} components={{ Toolbar: this.getSearchTextField }} pageSize={5} rowsPerPageOptions={[5]} // checkboxSelection // disableSelectionOnClick autoHeight />

Problema, ambas consolas imprimen indefinidas. Idealmente, debería proporcionar toda la fila a y la fila b o al menos los datos de la columna de la fila a y los datos de la columna de la fila b.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!