ensure sort for table each render