Fix inner planning table sorting