use sorted list to create the version mapping