sort the results by fewest elements used

- e.g. prefer 'Tin' over 'Sulphur Nitrogen'
now with decode.