Sort lines alphabetically, by length, or randomly