- TW-1444 Tag ordering is preserved, but should be sorted in reports.
This commit is contained in:
Paul Beckingham 2014-11-08 16:52:19 -05:00
parent da8e16a38b
commit 8ff32b767f
2 changed files with 9 additions and 1 deletions

View file

@ -123,7 +123,14 @@ void ColumnTags::render (
if (_style == "default" ||
_style == "list")
{
std::replace (tags.begin (), tags.end (), ',', ' ');
std::vector <std::string> allTags;
split (allTags, tags, ',');
if (allTags.size () > 1)
{
std::sort (allTags.begin (), allTags.end ());
join (tags, " ", allTags);
}
std::vector <std::string> all;
wrapText (all, tags, width, _hyphenate);