sort_bug.diff from Hasegawa-san
sort_bug2.diff from Hasegawa-san