Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我使用这个命令:
import-csv my.csv | select Date, Balance | sort Balance | select -first 10
Balance 列是浮点数据,但它是按字符串排序的。如何将其排序为数字?
尝试:
import-csv my.csv | select Date, Balance | sort {[double]$_.Balance} | select -first 10