Fixed bug in test-sort.sh

Needed to use "-gt" and "-eq" for numeric comparisons when evaluating expressions in the "if" statements.  This is why the mysterious file named "0" was being created.