lineal table sort bug fix