Group items of similar type together for list command, fixes #33