Try this
Dim m_equipmentList As New List(Of Schedule_Payitem) productsm_equipmentList.Sort(delegate(Schedule_Payitem p1, Schedule_Payitem p2) { return p1.Schedule_Payitemresourceid .CompareTo(p2.Schedule_Payitemresourceid ); }); Find centralized, trusted content and collaborate around the technologies you use most.
Learn more about CollectivesStack Internal
Knowledge at work
Bring the best of human thought and AI automation together at your work.
Explore Stack InternalTry this
Dim m_equipmentList As New List(Of Schedule_Payitem) productsm_equipmentList.Sort(delegate(Schedule_Payitem p1, Schedule_Payitem p2) { return p1.Schedule_Payitemresourceid .CompareTo(p2.Schedule_Payitemresourceid ); }); Try this
Dim m_equipmentList As New List(Of Schedule_Payitem) products.Sort(delegate(Schedule_Payitem p1, Schedule_Payitem p2) { return p1.Schedule_Payitem.CompareTo(p2.Schedule_Payitem); }); Try this
Dim m_equipmentList As New List(Of Schedule_Payitem) m_equipmentList.Sort(delegate(Schedule_Payitem p1, Schedule_Payitem p2) { return p1.resourceid .CompareTo(p2.resourceid ); });