# BPM Custom Code to sort open Op list by OprSeq

**URL:** <https://www.epiusers.help/t/bpm-custom-code-to-sort-open-op-list-by-oprseq/114539>\
**Category:** Epicor ERP 10\
**Tags:** bpm\
**Created:** [May 9, 2024, 7:51pm UTC](https://www.epiusers.help/t/bpm-custom-code-to-sort-open-op-list-by-oprseq/114539 "2024-05-09T19:51:52Z")\
**Posts on this page:** 1\
**Showing post:** 20

<div class="post-metadata">

**Author:** ![Mark\_Wonsil](https://www.epiusers.help/user_avatar/www.epiusers.help/mark_wonsil/32/51594_2.png) [@Mark\_Wonsil](https://www.epiusers.help/u/Mark_Wonsil)\
**Post date:** [May 12, 2024, 1:18am UTC](https://www.epiusers.help/t/bpm-custom-code-to-sort-open-op-list-by-oprseq/114539/20 "2024-05-12T01:18:51Z")

</div>

I know you’ve spent a couple of days on this but another option is to do the query in a BAQ and use string\_aggregate to generate your string.

> [@Sorting Contents of a StringAgg Subquery](https://www.epiusers.help/t/sorting-contents-of-a-stringagg-subquery/90826/14):
>
> Fixed: String\_Agg(RouteList.Calculated\_Comb,', ') Within group (order by RouteList.JobOper8\_OprSeq asc)

---

_[View the full topic](https://www.epiusers.help/t/bpm-custom-code-to-sort-open-op-list-by-oprseq/114539)._
