versions file: lose spurious commas, and sort