vb.net中的自定义排序 [英] Custom Sorting in vb.net

查看:99
本文介绍了vb.net中的自定义排序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我发现vb.net默认排序不适用于乌尔都语. VB对乌尔都语字母的排序错误.如果有什么办法可以为乌尔都语创建自定义排序类,或者我们可以说自定义排序顺序,例如
派遣分拣
A
B
C
D
E
自定义排序
D
C
A
B

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

推荐答案


您需要实现IComparer才能使用自定义排序,请查看以下文章:
http://www.dreamincode.net/forums/topic/57542-custom-sorting/ [^ ]

http://www.vb-helper.com/howto_net_custom_sort_array.html [
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


这篇关于vb.net中的自定义排序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆