storing the order of items in a joined table

You can just store it just like the C app code by creating a "points"
text column and serializing the array of points as a YAML file.