diff --git a/static/index.html b/static/index.html
index 47cebc6..7fefe2e 100644
--- a/static/index.html
+++ b/static/index.html
@@ -96,13 +96,34 @@
- Name |
- Distance to user |
- Closest station |
- Distance to station |
- Compatibility |
- Score |
- Access count |
+
+ Name
+
+ |
+
+ Distance to user
+
+ |
+
+ Closest station
+
+ |
+
+ Distance to station
+
+ |
+
+ Compatibility
+
+ |
+
+ Score
+
+ |
+
+ Access count
+
+ |
{{#each records}}
diff --git a/static/scripts/search.js b/static/scripts/search.js
index c4d46b9..e70e9f1 100644
--- a/static/scripts/search.js
+++ b/static/scripts/search.js
@@ -157,6 +157,15 @@
$('#records').empty();
$('#records').append(template({records: results.records}));
+ $('span.sort-icon').css('visibility', 'hidden');
+ var currentColumn = $('span.sort-icon[data-sort="' + _ctx.sortKey + '"]').css('visibility', 'visible');
+ if (_ctx.sortAsc) {
+ currentColumn.removeClass('glyphicon-chevron-down').addClass('glyphicon-chevron-up');
+ }
+ else {
+ currentColumn.removeClass('glyphicon-chevron-up').addClass('glyphicon-chevron-down');
+ }
+
if (results.records.length === 0) {
$('#resultPanel').slideUp();
}