You could use this in your ORDER BY statement:
ORDER BY CONVERT(varchar(10), [Date Column], 101), CONVERT(varchar(5), [Date Column], 114)
The thing is, even if you split the data it still should ORDER BY in the same order as your SQL statement is ordering the date column. And this should work just as easily unless you wanted the date to order ascending and the time be descending then you would use the example above.
ORDER BY [Date Column] 'ASC or DESC
This will order by year ascending and time descending.
ORDER BY DATEPART(yy, InvDate) ASC, CONVERT(varchar(5), InvDate, 114) Desc
Richard
|