orders and removes the ones with only 1 occurrence