当前位置:网站首页>C list field sorting contains numbers and characters
C list field sorting contains numbers and characters
2022-04-23 04:46:00 【spring-java】
var temValue = 0;
var resultChar = result.Where(x => !int.TryParse(x.listcode.ToString().Replace(".", ""), out temValue)).OrderBy(y => y.listcode.ToString()).ToList();
result = result.Where(x => int.TryParse(x.listcode.ToString().Replace(".", ""), out temValue)).ToList().OrderBy(y => Convert.ToInt32(y.listcode.ToString().Replace(".", ""))).ToList();
result.AddRange(resultChar);
版权声明
本文为[spring-java]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230445481048.html
边栏推荐
- 补充番外14:cmake实践项目笔记(未完待续4/22)
- Opencv + clion face recognition + face model training
- Recursive call -- Enumeration of permutations
- Code007 -- determine whether the string in parentheses matches
- Painless upgrade of pixel series
- What is the meaning of load balancing
- Leetcode009 -- search the target value in the array with binary search
- QML进阶(四)-绘制自定义控件
- PHP+MySQL 制作留言板
- Recommended scheme for national production of electronic components for wireless charging
猜你喜欢
QML进阶(四)-绘制自定义控件
QML进阶(五)-通过粒子模拟系统实现各种炫酷的特效
test
229. Find mode II
View analysis of scenic spots in ArcGIS
Installation of zynq platform cross compiler
[timing] empirical evaluation of general convolution and cyclic networks for sequence modeling based on TCN
Recommended scheme of national manufactured electronic components for intelligent electronic scales
Druid -- JDBC tool class case
使用model.load_state_dict()时,出现AttributeError: ‘str‘ object has no attribute ‘copy‘
随机推荐
No such file or directory problem while executing shell
La caméra Unity tourne avec la souris
Recursive call -- Enumeration of permutations
Differences among electric drill, electric hammer and electric pick
Small volume Schottky diode compatible with nsr20f30nxt5g
Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.1.15.
leetcode004--罗马数字转整数
Simply drag objects to the item bar
Basic operation of sequence table
A heavy sword without a blade is a great skill
AWS eks add cluster user or Iam role
Druid -- JDBC tool class case
Redis command Encyclopedia
敏捷实践 | 提高小组可预测性的敏捷指标
PIP3 installation requests Library - the most complete pit sorting
Summary of MySQL de duplication methods
Basic use of shell WC (counting the number of characters)
Go reflection rule
Installation and use of Apache bench (AB pressure test tool)
POI export message list (including pictures)