How can you sort your bag?

I have changed the “sort” button in my controls to numpad 9 because I thought the F keys might mess with something, but it still doesn’t work. Is this a broken command or am I doing something wrong?

It’s the sort for the Pokedex. There is no button to sort the bag.

Thanks for the info, but really wished there was a bag sorting option

Most people do, and there used to be, but they took it out in one of the patches. Idk why