Trying to fix mix sorting