Every line of 'datatable order by' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your JavaScript code is secure.
233 orderBy(column: K | [string | K, Direction][], direction: Direction = 'ASC') { 234 if (typeof column === 'string') { 235 column = [[column, direction]]; 236 } 237 this.components.orders = column as [string, Direction][]; 238 239 return this; 240 }
201 orderBy(...args) { 202 this._builder.orderBy(...args) 203 204 return this 205 }
83 _order(path, sortOrder, length) { 84 if (length <= 1) { 85 return ''; 86 } 87 88 for (let i = 0; i < length; i++) { 89 if (sortOrder[i].path === path) { 90 return i + 1; 91 } 92 } 93 }