MRG FIX sort indices in CSR matrix for SVM

Closes #1476.