# \[Data Structures\] Sorting Data structs

**URL:** <https://forums.unrealengine.com/t/data-structures-sorting-data-structs/426473>\
**Category:** Multiplayer & Networking\
**Tags:** data-structures, tarray, sorting, unreal-engine, trees, question\
**Created:** [June 2, 2018, 3:28am UTC](https://forums.unrealengine.com/t/data-structures-sorting-data-structs/426473 "2018-06-02T03:28:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![RyzonPT](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RyzonPT](https://forums.unrealengine.com/u/RyzonPT)\
**Post date:** [June 2, 2018, 3:28am UTC](https://forums.unrealengine.com/t/data-structures-sorting-data-structs/426473/1 "2018-06-02T03:28:53Z")

</div>

Hello every1.  
Well i 've been working with UE4 Multiplayer for the past year and it was really amazing.  
Now i came to a problem. I want to implement an optimized data struct for some querys. Lets supose the data would have a considerable size and I would need to sort it as fast as i could… Im not a c++ programmer, (i work around with C) and I would implement a tree (cuz its faster to sort and acess) if it were in C.  
With blueprints i can only think of TArray of objects (Cuz only TArray can be replicated) but is it optimizated to be sorted by dates for example?  
What are my options?  
Do i need to implement a AVL tree in c++?  
Need some advice here.  
Thank you.
