Fix table ordering bug. Fixes #68.