Javascript sort fails

May 7, 2010 at 11:58 AM
Edited May 7, 2010 at 11:58 AM

If I try to sort an array with .sort() Jint will crash due to none of the objects implementing IComparable.

To reproduce:
object result = _engine.Run("var somevalues='value2,value1'; var splitvalues = somevalues.split(','); var sortedvalues = splitvalues.sort(); return sortedvalues[0];");