I'm not sure if krsort() resets the pointer. It probably does though.