Fix sorting icons
This commit is contained in:
1 parent
90d346631f
commit
ee32d49cd3
1 file changed
+2
-2
@@ -80,8 +80,8 @@ function renderTable(
|
|||||||
let direction = 1;
|
let direction = 1;
|
||||||
|
|
||||||
let symbol = getIcon("unsorted");
|
let symbol = getIcon("unsorted");
|
||||||
if (sortAttributes[i] > 0) symbol = getIcon("sorted-dsc");
|
if (sortAttributes[i] > 0) symbol = getIcon("sorted-asc");
|
||||||
else if (sortAttributes[i] < 0) symbol = getIcon("sorted-asc");
|
else if (sortAttributes[i] < 0) symbol = getIcon("sorted-dsc");
|
||||||
|
|
||||||
const sortable = m(
|
const sortable = m(
|
||||||
"button",
|
"button",
|
||||||
|
|||||||
Reference in new issue
Block a user