Sort devices feature

Hello,

I have tried to add a sorting feature for devices, but it is failing on the test. Perhaps someone could help to see, where it goes wrong?
My forked project is here: