pkg-stats: allow to sort by column
authorRicardo Martincoski <ricardo.martincoski@gmail.com>
Thu, 6 Jul 2017 01:36:31 +0000 (22:36 -0300)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Thu, 6 Jul 2017 19:38:43 +0000 (21:38 +0200)
commit2f762fb620f440a72af128b3455df3897d06fba1
treea454940b15b716d21406899e9311109bc9d7c29d
parent845d3576a5054c4f691fd60a4071fa62f1f7f0bf
pkg-stats: allow to sort by column

With 2000+ packages it's not trivial to identify i.e.:
- all packages that don't have a hash file;
- all packages that have patches;
- all packages that have code style warnings;

User experience can be improved by dynamically sorting the resulting
table.

There is an open-source solution that does that in the client-side and
requires minimal changes to our script: sorttable.js.  The script is
MIT licensed as stated in its website.

Also add a hint to the user that the table can be sorted.

Signed-off-by: Ricardo Martincoski <ricardo.martincoski@gmail.com>
Cc: Arnout Vandecappelle <arnout@mind.be>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
support/scripts/pkg-stats