v is a table (specifically t[item.uid], where item.uid is used as a key to index the table t).
Look at the table t above (in Limos' code). An example of v would be this: {22008, 'Barbarian', 147, 143}
As I already said, v is a table, specifically an array. So, values in v are ordered by...