View Single Post
06-11-10, 06:13 AM   #1
upyursh
An Aku'mai Servant
AddOn Author - Click to view addons
Join Date: Mar 2009
Posts: 32
Table Sort Headache

Im getting a headache with this haha

I have a table of raid subs, but of course they are added to the table as they come in.

Table is like this..

Code:
		["subsList"] = {
			["AToonName"] = {
				["toon"] = "AToonName",
				["note"] = "",
				["updatednice"] = "20:38",
				["addednice"] = "20:38",
				["added"] = 1276254517,
				["updated"] = 1276254517,
			},
			["DToonName"] = {
				["toon"] = "DToonName",
				["note"] = "hmmm",
				["updatednice"] = "20:38",
				["addednice"] = "20:38",
				["added"] = 1276254503,
				["updated"] = 1276254530,
			},
			["AToonName2"] = {
				["toon"] = "AToonName2",
				["note"] = "yo",
				["updatednice"] = "20:39",
				["addednice"] = "20:38",
				["added"] = 1276254528,
				["updated"] = 1276254553,
			},
			["NToonName"] = {
				["toon"] = "NToonName",
				["note"] = "woah",
				["updated"] = 1276254802,
				["added"] = 1276254517,
				["addednice"] = "20:38",
			},
			["KToonName"] = {
				["toon"] = "KToonName",
				["note"] = "",
				["updatednice"] = "20:39",
				["addednice"] = "20:38",
				["added"] = 1276254521,
				["updated"] = 1276254574,
			},
		},
Want it to sort it by the Toon Name could either be by the index or the toon data

Any ideas?
  Reply With Quote