Table sorting added