Fix a broken assert() in vdbesort.c.
Changes to make the multi-threaded sorter sort stably.