Fixed sorting issue in projects page