compare_rts
static int compare_rts(const void *rt1, const void *rt2);
qsort((char*)rt, nrt, sizeof(rt[0]), compare_rts);