Skip to content

Instantly share code, notes, and snippets.

@error454
Last active February 5, 2016 20:12
Show Gist options
  • Save error454/2c72a5b03cca97085eea to your computer and use it in GitHub Desktop.
Save error454/2c72a5b03cca97085eea to your computer and use it in GitHub Desktop.
UE4 TMap FString Alphanumeric Sort
TMap<FString, FSomeOtherType> MyMap;
MyMap.KeySort([](const FString& A, const FString& B) {
return A.Compare(B, ESearchCase::IgnoreCase) < 0;
});
for (const auto& Entry : MyMap)
{
// Do something with sorted values
Entry.Value;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment