Move sorting functions out of sortTable, fix mistake in testDate
Move sorting functions out of sortTable, fix mistake in testDate

Fixes #71

HQidea/tablesort,tristen/tablesort,olizilla/tablesort,tristen/tablesort,HQidea/tablesort,olizilla/tablesort