locotab: fix for crash on sorting block or destination