mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-28 04:27:20 +02:00
Variant: Implemented custom UDA sorting
This commit is contained in:
parent
743cb92958
commit
29a09707f3
3 changed files with 70 additions and 43 deletions
|
@ -650,7 +650,9 @@ void Context::staticInitialization ()
|
|||
std::string name = rc->first.substr (4, rc->first.length () - 7 - 4);
|
||||
std::vector <std::string> values;
|
||||
split (values, rc->second, ',');
|
||||
Task::customOrder[name] = values;
|
||||
|
||||
for (auto r = values.rbegin(); r != values.rend (); ++r)
|
||||
Task::customOrder[name].push_back (*r);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue