# Sort header in legacy (a.k.a. Clarion chain)?

**URL:** <https://clarionhub.com/t/sort-header-in-legacy-a-k-a-clarion-chain/7594>\
**Category:** questions\
**Tags:** browse, templates\
**Created:** [October 22, 2024, 3:09pm UTC](https://clarionhub.com/t/sort-header-in-legacy-a-k-a-clarion-chain/7594 "2024-10-22T15:09:44Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Koen](https://clarionhub.com/letter_avatar_proxy/v4/letter/k/a9a28c/32.png) [@Koen](https://clarionhub.com/u/Koen)\
**Post date:** [October 22, 2024, 3:09pm UTC](https://clarionhub.com/t/sort-header-in-legacy-a-k-a-clarion-chain/7594/1 "2024-10-22T15:09:45Z")

</div>

Hi all,

I would like to add sort header in the browses of a legacy application. Is this possible? On first sight I think not as I don't see the option "Enable sort header".

The option "Enable use of ABC classes" is switched on. Maybe I need to do more to get it working, if so, what ?

Or are there alternatives. I remember there was a class in the C6 days, but I cannot remember what it was.

---

<div class="post-metadata">

**Author:** ![RchdR](https://clarionhub.com/letter_avatar_proxy/v4/letter/r/d78d45/32.png) [@RchdR](https://clarionhub.com/u/RchdR)\
**Post date:** [October 22, 2024, 3:31pm UTC](https://clarionhub.com/t/sort-header-in-legacy-a-k-a-clarion-chain/7594/2 "2024-10-22T15:31:01Z")

</div>

Have you tried wizarding up a browse proc with a file and see if you get the option to use an abc browse which would then give you access to the sort headers? Save the app first to make sure the global option is saved before trying to wizard up an abc browse proc.

---

<div class="post-metadata">

**Author:** ![Koen](https://clarionhub.com/letter_avatar_proxy/v4/letter/k/a9a28c/32.png) [@Koen](https://clarionhub.com/u/Koen)\
**Post date:** [October 22, 2024, 4:06pm UTC](https://clarionhub.com/t/sort-header-in-legacy-a-k-a-clarion-chain/7594/3 "2024-10-22T16:06:09Z")

</div>

> [@RchdR](#):
>
> Have you tried wizarding up a browse proc with a file

I just tried and no option to enable the header sort. The application was saved after switching on the global option “Enable use of ABC classes”

BTW it will be very inconvenient if only new browse wille allow header sort foran existing application.

---

<div class="post-metadata">

**Author:** ![RchdR](https://clarionhub.com/letter_avatar_proxy/v4/letter/r/d78d45/32.png) [@RchdR](https://clarionhub.com/u/RchdR)\
**Post date:** [October 22, 2024, 4:12pm UTC](https://clarionhub.com/t/sort-header-in-legacy-a-k-a-clarion-chain/7594/4 "2024-10-22T16:12:13Z")

</div>

I’m trying to imagine quite how you’d implement this, in other words do you have a browse class list box or trap the list box header events in the legacy list box and pipe them to the sort header methods. Id have to go over the classes again.

---

<div class="post-metadata">

**Author:** ![Koen](https://clarionhub.com/letter_avatar_proxy/v4/letter/k/a9a28c/32.png) [@Koen](https://clarionhub.com/u/Koen)\
**Post date:** [October 22, 2024, 5:32pm UTC](https://clarionhub.com/t/sort-header-in-legacy-a-k-a-clarion-chain/7594/5 "2024-10-22T17:32:30Z")

</div>

> [@Koen](#):
>
> I remember there was a class in the C6 days,

Found it in my archives: SnazzyListbox from John Christ. Unfortunate it requires Sort Header enabled so that is a NoGo for me.

And I also found something from Simon Kemp: sdkLCS, which works on Clarion and ABC, but only for for list boxes driven by simple queues.

---

<div class="post-metadata">

**Author:** ![PurpleEdge2214](https://clarionhub.com/user_avatar/clarionhub.com/purpleedge2214/32/5109_2.png) [@PurpleEdge2214](https://clarionhub.com/u/PurpleEdge2214)\
**Post date:** [October 24, 2024, 12:04am UTC](https://clarionhub.com/t/sort-header-in-legacy-a-k-a-clarion-chain/7594/6 "2024-10-24T00:04:17Z")

</div>

I wrote a template ages ago but seldom used it.

I have uploaded it here. Let me know if it is useful!

> **[GitHub - Comformark-Pty-Ltd/GWBClarionSortHeader: A browse sort header template...](https://github.com/Comformark-Pty-Ltd/GWBClarionSortHeader/tree/main)**
>
> main

---

<div class="post-metadata">

**Author:** ![Koen](https://clarionhub.com/letter_avatar_proxy/v4/letter/k/a9a28c/32.png) [@Koen](https://clarionhub.com/u/Koen)\
**Post date:** [October 24, 2024, 1:35pm UTC](https://clarionhub.com/t/sort-header-in-legacy-a-k-a-clarion-chain/7594/7 "2024-10-24T13:35:52Z")

</div>

Hi Geoff,

Thank you I was almost giving up. I tested on the demo and another Clarion application and they both worked well. The fact that your demo is working on SQLlite makes me confident that it will work on MS SQL as well. It surprises me how few lines of code are needed to make this work, great.

The only problem might be that it might not work with Capesoft Runscreen. Well actually it does, but the header names get mixed up. I will study the template code a bit more and maybe I can make some modifications but that is also up to my contractor if he considers it important.

Thank you very much.
