partition entries into sublists