We should look at more than the first element to decide on sort function

It's possible that the first row contain numbers but that the rows should still be sorted alphabetically. This PR looks at the first two and the last two rows before deciding on the sort function. Only if all 4 values agree will it choose the `sortNumber` or the `sortDate` function.