Einzelnen Beitrag anzeigen

Benutzerbild von DP News-Robot
DP News-Robot

Registriert seit: 4. Jun 2010
14.985 Beiträge
 
#1

delphi – Sorting TDictionary by a key of Integer in ascending order – Stack Overflow

  Alt 30. Mai 2019, 07:11
Great answer on [WayBack]*delphi – Sorting TDictionary by a key of Integer in ascending order – Stack Overflow*by J… comes down to this: var LDictionary : TDictionary<Integer, string>; LArray : TArray<Integer>; ... LArray := LDictionary.Keys.ToArray(); TArray.Sort<Integer>(LArray); I was trying the wrong direction (functional approach like LArray := LDictionary.Keys.ToArray.Sort();*), but the above procedural solution works. Members […]

Weiterlesen...
  Mit Zitat antworten Zitat