Foreign police officer sorted out danger ahead of me (8)
I believe the answer is:
gendarme
'foreign police officer' is the definition.
'gendarme' can be an answer for 'officer' (gendarme is a kind of officer). I am not certain of the 'foreign police' bit.
'sorted out danger ahead of me' is the wordplay.
'sorted out' is an anagram indicator.
'ahead of' is a charade indicator (letters next to each other) (some letters go in front of others).
'danger' is an anagram of 'gendar'.
'gendar'+'me'='GENDARME'
Can you help me to learn more?
(Other definitions for gendarme that I've seen before include "alpine pinnacle" , "Law enforcer" , "French copper" , "policeman in Paris?" , "Member of the French police" .)