{"name":"tvSortAll","operator":null,"title":"tvSortAll","type":"command","url":"https://community.bistudio.com/wiki/tvSortAll","revid":377598,"updated":"2026-01-02T07:01:08Z","groups":["GUI Control - Tree View"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"2.02"}],"since":{"game":"arma3","name":"Arma 3","version":"2.02"},"arma3_since":"2.02","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Sorts all children, including trees deriving from given path. Text of Tree View entries is used for sorting.","syntaxes":[{"syntax":"control tvSortAll [path, reversed]","since":null,"effect":null,"exec":null,"params":[{"name":"control","type":"Control","optional":false,"default":null,"description":null,"types":["Control"],"since":null,"text":"control: Control"},{"name":"path","type":"Tree View Path","optional":false,"default":null,"description":"path to start sorting from","types":["Tree View Path"],"since":null,"text":"path: Tree View Path - path to start sorting from"},{"name":"reversed","type":"Boolean","optional":false,"default":null,"description":"true to reverse sort it.","types":["Boolean"],"since":null,"text":"reversed: Boolean - true to reverse sort it."}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"Nothing"},"form":"binary","operator":null,"left":{"text":"control","types":["Control"]},"right":{"text":"[path, reversed]","types":["Array"]}}],"examples":[{"text":"```sqf\n_ctrl tvSortAll [[], false]; // sorts the complete Tree View\n```","code":["_ctrl tvSortAll [[], false]; // sorts the complete Tree View"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["tvSort","tvSortByValue","tvSortByValueAll"],"notes":[],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: GUI Control - Tree View","Introduced with Arma 3 version 2.02","Scripting Commands"]}