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

88
Views
JQUERY UI Sort specific column

I am working with a table where a single sortable column (DAYWEEK) needs to follow a specific sorting order. The column should be sorted not in an alphabetical order but following the day of the day of the week order.

$(tableId).puidatatable({
        paginator: {
            rows: params.rows,
        },
        ...
        columnResizeMode: 'expand',
        selectionMode: 'single',
        ...
        columns: gridColumns,
        datasource: function (callback, ui) ...
        ...
}

public static gridColumns = [
        { field: 'NAME', headerText: 'Name', headerClass: 'h_col', sortable: true, filter: true },
        ..
        { field: 'DAYWEEK', headerText: 'Day of the week', content: function (log: Log) { return log.DAYWEEK ? log.DAYWEEK : '' }, sortable: true }
    ];

Is there a way to specify for a specific column-field its sorting behavior function?

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!