This has probably something to do with an object not properly being removed from the drawOrder array.
Error: model/world.lua:158: attempt to index a nil value
stack traceback:
model/world.lua:158: in function <model/world.lua:158>
[C]: in function 'sort'
model/world.lua:157: in function 'addObject'
model/object.lua:175: in function 'work'
model/char.lua:43: in function 'update'
model/world.lua:167: in function 'update'
main.lua:45: in function 'update'
[string "boot.lua"]:434: in function <[string "boot.lua"]:399>
This has probably something to do with an object not properly being removed from the drawOrder array.