DmitrMakeev commited on
Commit
f566035
·
verified ·
1 Parent(s): edc109c

Update data_gc_tab.html

Browse files
Files changed (1) hide show
  1. data_gc_tab.html +4 -3
data_gc_tab.html CHANGED
@@ -207,6 +207,10 @@
207
  .then(response => response.json())
208
  .then(data => {
209
  console.log('Data received:', data); // Логирование данных
 
 
 
 
210
  var linkFormatter = function(cell, formatterParams, onRendered) {
211
  var curator = cell.getValue();
212
  var curatorLink = cell.getData().curator_link;
@@ -218,9 +222,6 @@
218
  pagination: "local", // enable local pagination
219
  paginationSize: 50, // number of rows per page
220
  selectable: true, // enable row selection
221
- initialSort: [
222
- {column:"id", dir:"desc"} // сортировка по убыванию по полю "id"
223
- ],
224
  columns: [
225
  {title:"Номер в списке", field:"id"},
226
  {title:"Имя", field:"name", width:120},
 
207
  .then(response => response.json())
208
  .then(data => {
209
  console.log('Data received:', data); // Логирование данных
210
+
211
+ // Переворачиваем массив данных
212
+ data.reverse();
213
+
214
  var linkFormatter = function(cell, formatterParams, onRendered) {
215
  var curator = cell.getValue();
216
  var curatorLink = cell.getData().curator_link;
 
222
  pagination: "local", // enable local pagination
223
  paginationSize: 50, // number of rows per page
224
  selectable: true, // enable row selection
 
 
 
225
  columns: [
226
  {title:"Номер в списке", field:"id"},
227
  {title:"Имя", field:"name", width:120},