Is it possibile to sort columns by a function or sort columns by a different field or to format the column header with a function? My case is a date column and I need it sorted as date but displayed in a user friendly format. I tried putting a function both in sort and columnsSort following an example in your code snippets, but it doesn’t work:
const dateParse = webix.Date.strToDate("%d/%m/%Y");
...
structure: {
rows: ["atleta"],
columns: [
{
id: "data_allenamento",
sort: function(a, b) {
a = dateParse(a);
b = dateParse(b);
return a > b ? 1 : a < b ? -1 : 0;
}
}
]...