aboutsummaryrefslogtreecommitdiffstats
path: root/modules/templates
diff options
context:
space:
mode:
Diffstat (limited to 'modules/templates')
-rw-r--r--modules/templates/helper.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/templates/helper.go b/modules/templates/helper.go
index b935eb6cc0..7919586359 100644
--- a/modules/templates/helper.go
+++ b/modules/templates/helper.go
@@ -351,12 +351,13 @@ func NewFuncMap() []template.FuncMap {
}
} else {
// if sort arg is in url test if it correlates with column header sort arguments
+ // the direction of the arrow should indicate the "current sort order", up means ASC(normal), down means DESC(rev)
if urlSort == normSort {
// the table is sorted with this header normal
- return SVG("octicon-triangle-down", 16)
+ return SVG("octicon-triangle-up", 16)
} else if urlSort == revSort {
// the table is sorted with this header reverse
- return SVG("octicon-triangle-up", 16)
+ return SVG("octicon-triangle-down", 16)
}
}
// the table is NOT sorted with this header