Skip to content

Commit

Permalink
code>new: sort the initial table by column `github_repo_info.time_las…
Browse files Browse the repository at this point in the history
…t_commit` in desc order by default
  • Loading branch information
pwnfan committed Jun 16, 2023
1 parent d01bf9c commit 354e1eb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions js/tagmark.js
Original file line number Diff line number Diff line change
Expand Up @@ -486,6 +486,9 @@ function createTable() {
// we can not set maxHeight to "90%", this will cause the header frozen not work
// instead we should caculate the value then set to maxHeight
maxHeight: `${0.9 * window.innerHeight}px`,
initialSort: [
{column: "github_repo_info.time_last_commit", dir: "desc"},
],
pagination: true,
paginationSize: 1000,
paginationSizeSelector: [100, 1000, 10000, 100000],
Expand Down

0 comments on commit 354e1eb

Please sign in to comment.