Add the option to sort maildirs in Lua.

There is now a Lua function "sort_maildirs", which if
present is passed a table of maildirs to sort and
return.
Add simple maildir sorting example.