gradient-angle: Fix sorting of NaN colorStop angles.

Compare by using colorStop index.