Using table instead of sort of list