diff --git a/src/components/MdTable/MdTable.vue b/src/components/MdTable/MdTable.vue index 800a2e480..74dae81f0 100644 --- a/src/components/MdTable/MdTable.vue +++ b/src/components/MdTable/MdTable.vue @@ -112,6 +112,14 @@ const isAsc = this.MdTable.sortOrder === 'asc' let isNumber = typeof aAttr === 'number' + if (!aAttr) { + return 1; + } + + if(!bAttr) { + return -1 + } + if (isNumber) { return isAsc ? (aAttr - bAttr) : (bAttr - aAttr) }