Make fish config work if one of colors is undefined.

This moves the sorting to be done before sorting remaining colors.