for (int i = 0; i < 128; i++)
rev[i].c = 128 + i, rev[i].u = tbl[i];
qsort(rev, 128, sizeof(CharsetItem), CompareCharsetItems);
for (int i = 0; i < 128; i++)
rev[i].c = 128 + i, rev[i].u = tbl[i];
qsort(rev, 128, sizeof(CharsetItem), CompareCharsetItems);