added ordering for table