Assign a SORTORDER metadata to the image

This is automatically assigned according to the OS type and the
distribution of the image.

This resolves #9