Comparing strings with < will compare the ascii values, I agree with majna that comparing timestamps is a better idea.  This is not an issue when doing equality tests though.