diff --git a/src/App.js b/src/App.js index 33f857b..be271eb 100644 --- a/src/App.js +++ b/src/App.js @@ -487,7 +487,7 @@ function TableEditor(p) { cols.filter((col)=>col.name!=="id"&&col.name.includes("_id")).forEach((col)=>{ promise_list.push(axios.get(BACKEND_URL+"/"+col.name.replace("_id","")) .then((data)=>{ - dependency_map[col.name]=data.data.rows.reverse() + dependency_map[col.name]=data.data.rows.sort((a,b)=>b.id-a.id) })) }) setData(rows)