etcdserver: sort IDs and s/getIDset/getIDs/

IMHO this is a rare operation so the overhead of sorting here rather than in
the test is inconsequential.