Make preprocess sort

Prevented OOME in preprocess for large feature files.