mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Performance
- Removed the unnecessary sort in the 'completed' report. The tasks are already sorted.
This commit is contained in:
parent
9988ecec5e
commit
9535121c1e
1 changed files with 4 additions and 1 deletions
|
@ -189,7 +189,10 @@ std::string handleCompleted (TDB& tdb, T& task, Config& conf)
|
|||
table.setColumnJustification (1, Table::left);
|
||||
table.setColumnJustification (2, Table::left);
|
||||
|
||||
table.sortOn (0, Table::ascendingDate);
|
||||
// Note: There is deliberately no sorting. The original sorting was on the
|
||||
// end date. Tasks are appended to completed.data naturally sorted by
|
||||
// the end date, so that sequence is assumed to remain unchanged, and
|
||||
// relied upon here.
|
||||
|
||||
// Iterate over each task, and apply selection criteria.
|
||||
for (unsigned int i = 0; i < tasks.size (); ++i)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue