Fixed missing 'np' on sort in mcsolve