check order table sort fns