Sorting recent projects by frequency of occurence

instead of just uniquify the ids, we can group them to sort the resulting array by length.