Fixed sorting of Subject entity