time_sm
qsort((void *)buffer, size, sizeof (struct sm), time_sm);
static int time_sm(const void *, const void *b);