Click here to Skip to main content
15,886,513 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
emp datatable
SQL
datatable emp;

ID   name
1    john
2    david
3    kerry
4    trott
5    steve


I want the result from above datatable in the order as

SQL
ID   Name
4    trott
1    john
5    steve

When I used emp.select("ID in(4,1,5)"), records are sorted in desc but I want
order mentioned above i.e. 4,1,5

Can anyone share there though on this
Posted
Updated 26-May-15 20:27pm
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900