UIElement.SortChildren (Civ5 API)

From Civilization Modding Wiki
Jump to: navigation, search

This page is a part of the Lua and UI Reference (Civ5).


Function.png This method is declared by ControlBase.

This is an instance method, invoke it with a colon.


Usage

void UIElement:SortChildren((void func(unknown a, unknown b)) SortFunction)


Parameters

SortFunction: No description available.


Source code samples

Redundant occurences have been removed.

CityList.lua

UI/InGame/CityList.lua
0268
Controls.MainStack:SortChildren( SortFunction );


CityView.lua

UI/InGame/CityView/CityView.lua
1251
Controls.BuildingStack:SortChildren( CVSortFunction );


CivilopediaScreen.lua

UI/Civilopedia/CivilopediaScreen.lua
4663
Controls.ListOfArticles:SortChildren( SortFunction );


GPList.lua

UI/InGame/GPList.lua
0167
Controls.ArtistStack:SortChildren( SortFunction );
0168
Controls.EngineerStack:SortChildren( SortFunction );
0169
Controls.MerchantStack:SortChildren( SortFunction );
0170
Controls.ScientistStack:SortChildren( SortFunction );


LoadMenu.lua

UI/FrontEnd/LoadMenu.lua
0566
Controls.LoadFileButtonStack:SortChildren( CloudSaveSort );
0587
Controls.LoadFileButtonStack:SortChildren( g_CurrentSort );
0742
Controls.LoadFileButtonStack:SortChildren( v[2] );


Lobby.lua

UI/FrontEnd/Multiplayer/Lobby.lua
0487
Controls.ListingStack:SortChildren( SortFunction );


MilitaryOverview.lua

UI/InGame/Popups/MilitaryOverview.lua
0347
Controls.MilitaryStack:SortChildren( SortFunction );
0348
Controls.CivilianStack:SortChildren( SortFunction );


MPList.lua

UI/InGame/WorldView/MPList.lua
0296
teamEntry.TeamStack:SortChildren( MPListSort );
0300
Controls.MPListStack:SortChildren( MPListSort );


ResourceList.lua

UI/InGame/ResourceList.lua
0145
Controls.LuxuryStack:SortChildren( SortFunction );
0146
Controls.StrategicStack:SortChildren( SortFunction );
0147
Controls.BonusStack:SortChildren( SortFunction );



The initial version of this page was created by the Civ5 API Bot, see the Civ5 API Reference FAQ. Some of the texts come from the 2kgames' wiki and most of code samples are copyrighted to Firaxis.
Functions' signatures were either copied from the 2kgames' wiki, or infered from the Lua source files and the binaries. Errors are possible.
Contributors may find help in the Contributors guide to the Civ5 API.