Dear All,
I'm having hassle sorting a string variable. Even after using the
Code:
sort
code, the entries are not arranged in ascending order. The date is in the format of DMY and not North America's (MDY)

Code:
* Example generated by -dataex-. To install: ssc install dataex
clear
input str10 RateDate
"  1/2/2002"
"  1/2/2005"
"  1/2/2006"
"  1/2/2007"
"  1/2/2008"
"  1/2/2010"
"  1/2/2011"
"  1/2/2012"
"  1/2/2013"
"  1/2/2016"
"  1/2/2017"
"  1/2/2018"
"  1/2/2019"
"  1/3/2002"
"  1/3/2004"
"  1/3/2005"
"  1/3/2006"
"  1/3/2007"
"  1/3/2010"
"  1/3/2011"
end