summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xsupport/scripts/pkg-stats13
1 files changed, 12 insertions, 1 deletions
diff --git a/support/scripts/pkg-stats b/support/scripts/pkg-stats
index 1956941f37..95a8afc45e 100755
--- a/support/scripts/pkg-stats
+++ b/support/scripts/pkg-stats
@@ -26,6 +26,7 @@
#
echo "<head>
+<script src=\"https://www.kryogenix.org/code/browser/sorttable/sorttable.js\"></script>
<style type=\"text/css\">
table {
width: 100%;
@@ -59,7 +60,9 @@ td.lotsofpatches {
<a href=\"#results\">Results</a><br/>
-<table>
+<p id=\"sortable_hint\"></p>
+
+<table class=\"sortable\">
<tr>
<td>Id</td>
<td>Package</td>
@@ -428,4 +431,12 @@ echo "</table>"
echo "<hr/>"
echo "<i>Updated on $(LANG=C date), Git commit $(git log master -n 1 --pretty=format:%H)</i>"
echo "</body>"
+
+echo "<script>
+if (typeof sorttable === \"object\") {
+ document.getElementById(\"sortable_hint\").innerHTML =
+ \"hint: the table can be sorted by clicking the column headers\"
+}
+</script>
+"
echo "</html>"
OpenPOWER on IntegriCloud