fix failed wx assertion (can't insert into sorted list)