# Sorting in the Data Editor

**URL:** <https://community.glideapps.com/t/sorting-in-the-data-editor/4561>\
**Category:** Feature Requests\
**Created:** [February 13, 2020, 2:06pm UTC](https://community.glideapps.com/t/sorting-in-the-data-editor/4561 "2020-02-13T14:06:33Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [October 8, 2022, 1:29am UTC](https://community.glideapps.com/t/sorting-in-the-data-editor/4561/12 "2022-10-08T01:29:25Z")

</div>

> [@Jeff\_Hager](#):
>
> believe someone has create javascript that will sort an array based on another value,

Yes, that was me.

> [@Sort a Joined List using a secondary joined list as sort keys](https://community.glideapps.com/t/sort-a-joined-list-using-a-secondary-joined-list-as-sort-keys/30412):
>
> Finally found a reason to have a play with this one smiley Not sure how useful this will be for others, but @Jeff_Hager might find it of interest. It accepts two joined lists, and will sort the values in the first list using the values in the second list as sort keys, and will return the sorted list as a single string with the delimiters stripped out. I had a very specific use case for this, which was to transform a table like this: into this:

And that’s where I was possibly heading with my earlier response, but I was just trying to understand the use case first, before suggesting it.

_sigh_ … this endless stream of XY questions does my head in sometimes. I think I need a holiday ☹

---

_[View the full topic](https://community.glideapps.com/t/sorting-in-the-data-editor/4561)._
