Build: Filter and sort versions in gensite (fixes #1430)