Sorted cvar list alphabetically #690

master
Lodle 2013-10-28 12:14:11 -07:00
parent e82aa3cec0
commit 9e18a07252
1 changed files with 6 additions and 1 deletions

View File

@ -49,6 +49,11 @@ CONCOMMAND(cvarlist, "cvarlist")
uint32 skiped = 0;
std::sort(begin(vList), end(vList), [](CVar* pA, CVar* pB)
{
return std::string(pA->getName()) < std::string(pB->getName());
});
for (size_t x=0; x<vList.size(); x++)
{
CVar *temp = vList[x];
@ -70,7 +75,7 @@ CONCOMMAND(cvarlist, "cvarlist")
//both these concommands are handled by the consle form
//both these concommands are handled by the console form
CONCOMMAND(condump, "condump"){}
CONCOMMAND(clear, "clear"){}