【发布时间】:2012-04-26 14:25:02
【问题描述】:
我有一本 TDictionary。它充满了广泛的循环。当循环完成时,我需要用更多的分数(整数)检索 10 个键(字符串)。实现这一目标的最有效方法是什么?
在 Objective-C(Cocoa) 中我这样做:
NSArray *top_words_sorted_array = [top_words_dictionary keysSortedByValueUsingSelector:@selector(compare:)];
然后迭代新的排序数组。在 Delphi 中怎么做?
【问题讨论】:
标签: delphi sorting collections delphi-xe