vb.net - LINQ to SQL Order By fails -


im having little problem trying order row.timestamp sql datetime. believe picture says more thousand words, here one! :)

picture

as can see mixes other hours in it, have googled allot before asking question here. appreciated.

thanks.

using db new basecontrollerentities     dim query list(of tbllog) = (from row in db.tbllogs select row order row.timestamp ascending).tolist         each item tbllog in query             addtolistview(item)         next end using  private sub addtolistview(byval row tbllog)     dim lvitem new listviewitem(row.timestamp)     lvitem.subitems.add(row.logmessage)     listview1.items.add(lvitem) end sub 


Comments

Popular posts from this blog

ios - RestKit 0.20 — CoreData: error: Failed to call designated initializer on NSManagedObject class (again) -

java - Digest auth with Spring Security using javaconfig -

laravel - PDOException in Connector.php line 55: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) -