sort by first occurrence by twobit

t=table
for l in io.lines()do
i=1 while t[i]and l~=t[i]do i=i+1 end
t:insert(i,l)end
print(t:concat"\n")

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page