Okay I have a couple questions regarding table sorting:
How can I sort this table, from A to Z by it's first value, so myTable[1]?
local myTable = {
{ "David", 21, "Male", "Chicago" },
{ "Jessica", 42, "Female", "New York" },
{ "Kevin", 14, "Male", "New York" },
{ "Louise", 21, "Female", "Washington" },
}
Similar with numbers, how do I sort that table from lowest to highest by it's second value, myTable[2]?
Thank you.