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/0f82acee956c085ead363596cfc7a09e69d01d7e below:

revert asc direction (#1776) · vuematerial/vue-material@0f82ace · GitHub

File tree Expand file treeCollapse file tree 1 file changed

+4

-6

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+4

-6

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

@@ -113,14 +113,12 @@

113 113

let isNumber = typeof aAttr === 'number'

114 114 115 115

if (isNumber) {

116 -

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

116 +

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

117 117

}

118 118 119 -

if (isAsc) {

120 -

return bAttr.localeCompare(aAttr)

121 -

}

122 - 123 -

return aAttr.localeCompare(bAttr)

119 +

return isAsc ?

120 +

aAttr.localeCompare(bAttr) :

121 +

bAttr.localeCompare(aAttr)

124 122

})

125 123

}

126 124

},

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