always sort card scripts by filename to ensure consistent order
use offer instead of put so that accepting input doesn't block as user may be
able to click on a button multiple times generating multiple calls to
actionClocked

fixes issue 357.
added whitespace within expression for readability
remove extra newlines