# Data structure for appending, sorting, filtering

**URL:** <https://forum.dfinity.org/t/data-structure-for-appending-sorting-filtering/9981>\
**Category:** Developers\
**Created:** [December 29, 2021, 5:03am UTC](https://forum.dfinity.org/t/data-structure-for-appending-sorting-filtering/9981 "2021-12-29T05:03:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kevinli](https://avatars.discourse-cdn.com/v4/letter/k/8edcca/32.png) [@kevinli](https://forum.dfinity.org/u/kevinli)\
**Post date:** [December 29, 2021, 5:03am UTC](https://forum.dfinity.org/t/data-structure-for-appending-sorting-filtering/9981/1 "2021-12-29T05:03:34Z")

</div>

I recently updated to dfx 0.8.4 and the latest Motoko library and noticed that Array.append is deprecated. Before, I was using an array which would work for appending/sorting/filtering. I was transferring arrays to buffers, but buffers do not have similar sorting and filtering functionality. Is there something I’m missing? Or do I just need to implement these things (which seems a bit counterintuitive?) Also can’t directly convert a Buffer to an array for these functionalities it seems
