correct sorting for sort -df and runes. Reference: /n/atom/patch/applied/sortdfi Date: Thu Mar 13 00:26:16 CET 2014 Signed-off-by: quanstro@quanstro.net --- /sys/src/cmd/sort.c Thu Mar 13 00:25:45 2014 +++ /sys/src/cmd/sort.c Thu Mar 13 00:25:45 2014 @@ -1292,14 +1292,14 @@ /* * for characters out of range, * the table does not do Rflag. - * ignore is based on mapto[255] + * ignore is computed directly. */ if(c != 0 && c < nelem(f->mapto)) { c = f->mapto[c]; if(c == 0) continue; } else { - if(f->mapto[nelem(f->mapto)-1] == 0) + if(f->flags & Iflag) continue; /* * consider building maps as necessary