From ee32d49cd33010f96f6413a560085a4868b31978 Mon Sep 17 00:00:00 2001 From: Shweelan Samson Date: Thu, 25 Jul 2019 11:10:43 -0400 Subject: [PATCH] Fix sorting icons --- ui/index-table-component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/index-table-component.ts b/ui/index-table-component.ts index d16a2e1..1c5c04a 100644 --- a/ui/index-table-component.ts +++ b/ui/index-table-component.ts @@ -80,8 +80,8 @@ function renderTable( let direction = 1; let symbol = getIcon("unsorted"); - if (sortAttributes[i] > 0) symbol = getIcon("sorted-dsc"); - else if (sortAttributes[i] < 0) symbol = getIcon("sorted-asc"); + if (sortAttributes[i] > 0) symbol = getIcon("sorted-asc"); + else if (sortAttributes[i] < 0) symbol = getIcon("sorted-dsc"); const sortable = m( "button",