Changed sorting algorithm in text dump