Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion templates/index.html.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@
return nameComparison;
}
const sortField = sortFields[sortBy] || sortFields['completion-score'];
return Number(b.dataset[sortField]) - Number(a.dataset[sortField]) || nameComparison;
return Number(b.dataset[sortField]) - Number(a.dataset[sortField]);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Restore unpinned cards within tied groups

When a browser-language card has the same numeric value as surrounding cards—especially the common zero value for recent changes—reorder() removes its pinPriority while the card is still at the pinned front and then invokes this comparator. Returning zero preserves that pinned position within the tied group, so unpinning may not move the card at all and does not restore its normal position. Preserve an order from before pinning or use a deterministic tie-breaker when the pin state changes.

Useful? React with 👍 / 👎.

});

row.innerHTML = '';
Expand Down
Loading