Click here to Skip to main content
15,891,431 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I found that vb.net default sorting is not working for Urdu language. VB sort Urdu alphabets in wrong order. if there is any way i can make a custom sorting class for Urdu or we can say custom sorting order e.g
Deffault sorting
A
B
C
D
E
Custom Sorting
D
C
A
B
Posted

1 solution

Hi,
You need to implement IComparer in order to use custom sorting, take a look at these posts:
http://www.dreamincode.net/forums/topic/57542-custom-sorting/[^]

http://www.vb-helper.com/howto_net_custom_sort_array.html[^]

I hope it helps,
Cheers
 
Share this answer
 
Comments
hackerspk 19-Apr-12 7:43am    
Thanks for answer Reza but iam unable to get any idea from these examples if please you can make a little example ?
Reza Ahmadi 19-Apr-12 7:54am    
Here is a simple description in addition to sample, try this out:
http://msdn.microsoft.com/en-us/library/system.collections.icomparer.aspx

Cheers
hackerspk 19-Apr-12 10:15am    
Nothing working these all examples are about numbers

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