fix bug in SortableList which prevented it from sorting tables