Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: sort on month


From   qing ye <[email protected]>
To   [email protected]
Subject   st: sort on month
Date   Tue, 8 Sep 2009 14:16:40 +0100

hi,all
 I was trying to sort the dataset on one variable which indiates
months of the year.
strangly, month 10, 11 and 12 always comes ahead of month 2 and the
other months, anybody know why?

I have formated the variable to be integer, still does not work.

companyan            id                month
Bank of Bolton      20000         1
Bank of Bolton      20000        10
Bank of Bolton      20000        11
Bank of Bolton      20000        12
Bank of Bolton      20000         2
Bank of Bolton      20000         3
Bank of Bolton      20000         4

thanks
Q

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index