Sorting table part I