Pretty sure I saw in another thread that the custom sort function is not actually working/ready yet and wasn’t supposed to be turned on (don’t ask why they didn’t just turn it off in a future update cause I can’t answer that).
I can’t remember which thread unfortunately so I can’t point you to that, but if the feature is not actually ready, that could be why it’s causing you an issue.
Edit: I don’t think this is the thread I was referring to but it confirms what I said (3rd post):
It is from Oct '20 but I still don’t think it’s been implemented as of yet.
-Shark2k