Solved

Order by in Linq

Posted on 2009-04-15
2
2,357 Views
Last Modified: 2013-11-11
How do I have a order by on a UNION ?

Where do I add an orderby ?
var rsUnion = rsPunchTime.Union(rsPunchAccess);

Open in new window

0
Comment
Question by:u2envy1
2 Comments
 
LVL 19

Accepted Solution

by:
MsShadow earned 500 total points
ID: 24147382
rsUnion = rsUnion.OrderBy(o=>o.PunchTime)
0
 

Author Closing Comment

by:u2envy1
ID: 31570367
Thx
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question