使用 QUERY() 排序

一個 B C d
1 pen 紅色 500
2 pen 藍色 -50
3 pen 紅色 0
4 鉛筆 藍色 17
5 鉛筆 綠色 -1.5

按列 D 排序 order by:

=QUERY("A1:D6","select * order by D desc",1)