[JENKINS-21700] Sorting using Distribution column/graph doesn't work

- If table header Distribution on report page is clicked, the rows will be sorted randomly.
- The rows are now sorted according to the lines count.
- data="0" in tfoot row is needed for proper sorting (unknown why).