sort debug