mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
- Applied patch from Andy Lester to correct Table sorting to use the entire
string instead of just the initial characters.
This commit is contained in:
parent
e16bd057d8
commit
11225eb599
4 changed files with 8 additions and 3 deletions
|
@ -7,9 +7,11 @@ represents a feature release, and the Z represents a patch.
|
|||
|
||||
------ current release ---------------------------
|
||||
|
||||
1.4.2 (8/26/2008)
|
||||
1.4.2 (9/12/2008)
|
||||
+ "task undo" can now retract a "task done" command, provided no reports
|
||||
have been run (and therefore TDB::gc run)
|
||||
+ Task now correctly sorts on entire strings, instead of just the first
|
||||
character (thanks to Andy Lester)
|
||||
|
||||
------ old releases ------------------------------
|
||||
|
||||
|
|
1
NEWS
1
NEWS
|
@ -7,6 +7,7 @@ Task has been built and tested on the following configurations:
|
|||
- Fedora Core 8
|
||||
- Fedora Core 9
|
||||
- Ubuntu 8 Hardy Heron
|
||||
- Ubuntu 9 Feisty Fawn
|
||||
- Solaris 10
|
||||
- Cygwin 1.5.25-14
|
||||
|
||||
|
|
|
@ -94,6 +94,8 @@
|
|||
<ul>
|
||||
<li>"task undo" can now retract a "task done" command, provided no
|
||||
reports have been run.
|
||||
<li>Task now correctly sorts on entire strings, instead of just the
|
||||
first character (thanks to Andy Lester).
|
||||
</ul>
|
||||
|
||||
<p>
|
||||
|
|
|
@ -758,12 +758,12 @@ void Table::sort (std::vector <int>& order)
|
|||
break;
|
||||
|
||||
case ascendingCharacter:
|
||||
if ((char)*left > (char)*right)
|
||||
if ((std::string)*left > (std::string)*right)
|
||||
SWAP
|
||||
break;
|
||||
|
||||
case descendingCharacter:
|
||||
if ((char)*left < (char)*right)
|
||||
if ((std::string)*left < (std::string)*right)
|
||||
SWAP
|
||||
break;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue