lua.wetgenes.gamecake.zone.scene.sortby_update
scene:sortby_update(newtab)
A function that takes the array part of newtab and reverses the key=value so a simple order list can be provided without any explicit weights. The first caste name in the array gets a weight of 1, second 2 and so on.
Newtab is coppied into scene.sortby for use a s aweight lookuptable of name to weight.
If newtab is not provided then scene.sortby is used by default.