473,408 Members | 2,442 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

sort alphanumeric values

12
Hi,

Does anyone know how to sort using linq-entity.


i use the following code:
from i in objEntities.Items
where ....
orderby i.Name
select i

The result is item1,item2,item21, item22, item3. But, i want it to be like item1, item2, item3, item21, item22

Thanks
Jan 6 '12 #1
2 3077
Your linq-entity Coadings are correct. The Field "Name" is Varchar.So,
item21 came first.
Jan 7 '12 #2
dha lak
12
Thanks for the reply!

I do not have much in-depth knowledge in Linq or generics but i am good in the basics level.

Is it possible to use generics with Linq to override the default sorting in linq?
Jan 9 '12 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Dot net work | last post by:
I would like to keep track of pairs of values, like this: Apple 50 Pear 100 Banana 30 I would like to keep this data sorted using the number column, and not the text column. So, I...
2
by: java_jazzy | last post by:
Hai , May I know how do we sort alphanumeric characters present in the same column. Thanking you, java_jazzy.
3
by: symbee | last post by:
Hi all, I want to create a string of alphanumeric values. Actually it is for security purpose. I am using C++ and I want the fuction for that... Can anybody help regarding this?? Plzzzzzzzzzzz...
7
by: ^cypis^ vel. SQ9JTI | last post by:
Hi, i need your help. I have to prepare a homework, easy program, which will be sorting the values from txt file and writing the solution to another txt file. It has to be a bucket sort. Have...
9
ak1dnar
by: ak1dnar | last post by:
I need a query to generate the client id automatically with in my client table. Currently i can generate it in this format 10001,10002,10003... . but I need another char value before the numeric...
1
by: reni | last post by:
haii, plzz help me to arrange the userid in ascending order, the userid contains both numeric and alphanumeric values, i am using vb dot net2005 and sql2000, when i arrange the userid it is coming...
1
by: Fareast Adam | last post by:
Anyone know how to sorting array values from least to greatest. Here the code; function mulsort($a) { sort($a); $c = count($a); for($i = 0; $i < $c; $i++) if...
1
by: chris fellows | last post by:
I have a C# webservice with a web method that accepts a string parameter that contains encrypted data. For some parameter values with non-alphanumeric values then the web method fails with an HTTP...
1
by: cmrhema | last post by:
Hi, I want to give transaction Id to each clients I have to check the latest transaction for the clients and then increment it with by 1. If I have VT9 as the last transaction then the next...
1
by: MGM | last post by:
Hey everyone, I had a quick problem: I want to be able to send a string of data to a function and have it return that same string but only in alphanumerics. That is to say, if I sent it: ...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.