# How to implement complexed custom sort?

**URL:** <https://forum.elixirforum.com/t/how-to-implement-complexed-custom-sort/17985>\
**Category:** Questions\
**Tags:** lists, structs, sort\
**Created:** [November 17, 2018, 7:53am UTC](https://forum.elixirforum.com/t/how-to-implement-complexed-custom-sort/17985 "2018-11-17T07:53:57Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![ndac\_todoroki](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/ndac_todoroki/32/8840_2.png) [@ndac\_todoroki](https://forum.elixirforum.com/u/ndac_todoroki)\
**Post date:** [November 17, 2018, 10:44am UTC](https://forum.elixirforum.com/t/how-to-implement-complexed-custom-sort/17985/5 "2018-11-17T10:44:09Z")

</div>

Giving a custom function to (e.g. `Enum.sort/3`) was what I first considered, but it doesn’t help when you want to sort nested structs… 😞  
But anyway, I like your AVLTree! It is very simple. Thanks!

---

_[View the full topic](https://forum.elixirforum.com/t/how-to-implement-complexed-custom-sort/17985)._
