MCPcopy
hub / github.com/layui/layui / sort

Function sort

src/modules/treeTable.js:1605–1610  ·  view source on GitHub ↗
(data, field, type)

Source from the content-addressed store, hash-verified

1603
1604 // 只和同级节点排序
1605 var sort = function (data, field, type) {
1606 layui.sort(data, field, type, true);
1607 layui.each(data, function (rowIndex, trData) {
1608 sort(trData[childrenKey] || [], field, type);
1609 });
1610 };
1611
1612 if (options.autoSort) {
1613 var initSort = options.initSort;

Callers 1

treeTable.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected