vanilla table sort