correct sortoptions