This took WAY too long to see. The logs shouldn't be sorted while we're
still in the outer loop. Sort at the end once we've collected all the logs
we can.
#!/bin/sh
DIALOG=`whichdialog`
# make sure we have dialog
if[x"${DIALOG}"=x""];then
echo"Failed to find the program 'dialog' which is required to run this script!">&2
echo"">&2
echo"Please install dialog or use the standard ./configure";>&2