If you use a text field and want to place dates in it that can be sorted then you need to format the dates in a specific format
Year then month then day

so your example dates would be written 20170731 20170808 and would sort as expected

You can add separators in if you want