- 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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user