[fix] [grid] sort rows by idx
This commit is contained in:
parent
7014fe1ed8
commit
a05f40bd45
1 changed files with 1 additions and 1 deletions
|
|
@ -115,7 +115,7 @@ wn.ui.form.Grid = Class.extend({
|
|||
"parentfield": this.df.fieldname,
|
||||
"parent": this.frm.docname
|
||||
});
|
||||
data.sort(function(a, b) { return a.idx > b.idx ? 1 : -1 });
|
||||
data.sort(function(a, b) { return a.idx - b.idx});
|
||||
return data;
|
||||
},
|
||||
set_column_disp: function(fieldname, show) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue