mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-22 14:23:35 -07:00
WebUI: Fix sorting of table content
This commit is contained in:
parent
818a527ea1
commit
3dead0793b
1 changed files with 2 additions and 2 deletions
|
@ -2906,9 +2906,9 @@ window.qBittorrent.DynamicTable ??= (() => {
|
|||
const node1 = this.getNode(row1.data.rowId);
|
||||
const node2 = this.getNode(row2.data.rowId);
|
||||
if (node1.isFolder && !node2.isFolder)
|
||||
return -1;
|
||||
if (node2.isFolder && !node1.isFolder)
|
||||
return 1;
|
||||
if (node2.isFolder && !node1.isFolder)
|
||||
return -1;
|
||||
}
|
||||
|
||||
const res = column.compareRows(row1, row2);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue