从一个复杂的评分过程中,我有一个 TDictionary 结构:
target_results : TDictionary<longint, double>;
键代表 MySQL 表中记录的 id。从那个 id 我可以检索一个文件日期和一个文件名。我需要提供按以下选项之一排序的这些结果:
1. dictionary value (solved: I'm doing this by assigning the dictionary to an array, sorting it and then retrieving the filename and date for each result, from the database)
2. filename
3. filedate
我正在考虑使用 TVirtualTable(来自 Devart),因为我已经在这个项目中使用了 UniDAC。有人可以建议一种更快、更灵活、更原生的方法吗?