-
Posted by Kentigern on Sat, 27 Mar 2010 17:46:19
On page 248 in the Writing a New Sorting Function the array of item times should be BagBuddy_ItemTimes, not BagBuddy.itemTimes
-
Posted by jnwhiteh on Sun, 28 Mar 2010 17:56:22
Thanks for the report, I'll try to get that added to the website.
-
Posted by Omnius on Sat, 17 Apr 2010 03:52:19
Also, there's an issue using itemTimeNameSort if there's only one item that matched the filter. This is how I allowed for it and it seems to work:
if #sortTbl > 1 then table.sort(sortTbl,itemTimeNameSort) end
This goes right after the table.insert loop.
I also ran into an issue with the time value being null for one of the items, so I had to add a conditional within itemTimeNameSort, right after setting aTime and bTime:
if aTime and bTime then -- the existing if/else statement end
Probably not the most elegant fixes 8^) but they seem to work.