Hello,
I have the following table :
local tblToSort = {}
tblToSort [1] = {name = “Orange”, showFirst = true)
tblToSort [2] = {name = “Apple”, showFirst = false)
tblToSort [3] = {name = “Pie”, showFirst = false)
tblToSort [4] = {name = “Milk”, showFirst = true)
tblToSort […] = …
I want to be able to show this table with all items that are showFirst == true in alphabetical order, then all item that are showFirst == false. Which mean the result would be the following:
Milk, Orange, Apple, Pie
I have try several permutation of table.sort to sort with those 2 parameters, but I am not successfull. Anybody would know the recipe for this?
thanks [import]uid: 28795 topic_id: 28160 reply_id: 328160[/import]
[import]uid: 52491 topic_id: 28160 reply_id: 113796[/import]