Sort lines randomly