If sorting by int is faster, what is the trick to sort a table by DateTime using the power of sorting by int ?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you are trying to optimize date/time sorting and it really matters, you may want to consider a
smalldatetimetype.It’s a 32-bit number, so it sorts as quickly as
int, but compared todatetime, has a smaller range of acceptable dates (1900-2079) and is rounded to the nearest minute.