Hi, I've been using the lexsort and it is really nice. Much simpler and faster than the implementation I had before. The only problem is it seems to crash on strings.<br><br>Do I just need to upgrade numpy or is it a current bug?
<br> In [2]: import numpy<br> nu<br> In [3]: numpy.array(['a', 'b', 'c'])<br> Out[3]:<br> array([a, b, c],<br> dtype='|S1')<br> In [4]: strArray = numpy.array(['a', 'b', 'c'])<br> In [5]: intArray =
numpy.array([1,2,3])<br> In [6]: numpy.__version__<br> Out[6]: '1.0b5'<br> In [7]: numpy.lexsort((intArray,))<br> Out[7]: array([0, 1, 2])<br> In [8]: numpy.lexsort((intArray,intArray))<br> Out[8]: array([0, 1, 2])
<br> In [9]: numpy.lexsort((strArray,intArray))<br> Segmentation fault (core dumped)