add table sorting

close https://github.com/repo-utils/badgeboard/issues/13