当前位置:网站首页>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
边栏推荐
- Pixel 5 5g unlocking tutorial (including unlocking BL, installing edxposed and root)
- IEEE Transactions on systems, man, and Cybernetics: Notes for systems (TSMC)
- Installation and deployment of Flink and wordcount test
- redis数据类型有哪些
- The 14th issue of HMS core discovery reviews the long article | enjoy the silky clip and release the creativity of the video
- Innovation training (V) mid term inspection
- Improving 3D object detection with channel wise transformer
- Leetcode005 -- delete duplicate elements in the array in place
- Huawei machine test -- high precision integer addition
- Solutions to the failure of sqoop connection to MySQL
猜你喜欢
Spark optimization
Arduino UNO r3+LCD1602+DHT11
Luogu p1858 [multi person knapsack] (knapsack seeking the top k optimal solution)
Shanghai Hangxin technology sharing 𞓜 overview of safety characteristics of acm32 MCU
Innovation training (V) configuration information
简单的拖拽物体到物品栏
Installation and deployment of Flink and wordcount test
test
QML advanced (IV) - drawing custom controls
Practice and exploration of knowledge map visualization technology in meituan
随机推荐
Phishing for NFT
leetcode009--用二分查找在数组中搜索目标值
Installation and use of Apache bench (AB pressure test tool)
[pytoch foundation] torch Split() usage
Practice and exploration of knowledge map visualization technology in meituan
leetcode004--罗马数字转整数
Painless upgrade of pixel series
补充番外14:cmake实践项目笔记(未完待续4/22)
Innovation training (IX) integration
Unity攝像頭跟隨鼠標旋轉
Leetcode003 -- judge whether an integer is a palindrome number
Unity rawimage background seamlessly connected mobile
Record your own dataset with d435i, run orbslam2 and build a dense point cloud
win10, mysql-8.0.26-winx64. Zip installation
redis数据类型有哪些
The 14th issue of HMS core discovery reviews the long article | enjoy the silky clip and release the creativity of the video
Learning Android from scratch -- Introduction
Teach you how to build the ruoyi system by Tencent cloud
Innovation training (10)
MySQL queries users logged in for at least N consecutive days