Skip to content

Commit

Permalink
Sorted cvar list alphabetically desura#690
Browse files Browse the repository at this point in the history
  • Loading branch information
Lodle committed Oct 28, 2013
1 parent e82aa3c commit 9e18a07
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/shared/uicore/code/Console.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand All @@ -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"){}

Expand Down

0 comments on commit 9e18a07

Please sign in to comment.