Fix sorting by project