SOLVED! What is wrong with my filter and sort codes

Hi,
Some of your characters could change if you copied them from a source that uses different encoding, notice that you use UTF-8 and that the code is written correctly in the editor