implement sorting for projects