Proper fallback on non-existant sort order entry (fixes #758)