A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/vuematerial/vue-material/commit/5d54da5 below:

undefined table sorting #1906 (#2012) · vuematerial/vue-material@5d54da5 · GitHub

File tree Expand file treeCollapse file tree 1 file changed

+8

-0

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+8

-0

lines changed Original file line number Diff line number Diff line change

@@ -112,6 +112,14 @@

112 112

const isAsc = this.MdTable.sortOrder === 'asc'

113 113

let isNumber = typeof aAttr === 'number'

114 114 115 +

if (!aAttr) {

116 +

return 1;

117 +

}

118 + 119 +

if(!bAttr) {

120 +

return -1

121 +

}

122 + 115 123

if (isNumber) {

116 124

return isAsc ? (aAttr - bAttr) : (bAttr - aAttr)

117 125

}

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4