Bug - Moving tasks in accidental sections

So I have a board with custom fields. I have sorted project with Assignee (but same goes to any other field).

I am going to drag this task to the bottom:

Just like this:

When task is dragged to bottom like this, it automatically takes very first section, instead of existing one:

Confusing.