Fixed NPE in Table#sort