Sort lines more finely