sort before filling.
remove wrong code
fix: broken render-ifs
meh. dontknow
current
miscelanneous speed optiomizations