# Problem with Mautic.reorderTableData after upgrading to mautic 5.03

**URL:** <https://forum.mautic.org/t/problem-with-mautic-reordertabledata-after-upgrading-to-mautic-5-03/30990>\
**Category:** Mautic 5 Install/Upgrade Support\
**Tags:** community, development\
**Created:** [February 21, 2024, 11:11am UTC](https://forum.mautic.org/t/problem-with-mautic-reordertabledata-after-upgrading-to-mautic-5-03/30990 "2024-02-21T11:11:35Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![rrpp.online](https://avatars.discourse-cdn.com/v4/letter/r/7993a0/32.png) [@rrpp.online](https://forum.mautic.org/u/rrpp.online)\
**Post date:** [February 21, 2024, 11:11am UTC](https://forum.mautic.org/t/problem-with-mautic-reordertabledata-after-upgrading-to-mautic-5-03/30990/1 "2024-02-21T11:11:35Z")

</div>

With the latest update 5.03, I noticed that the function to change the order of the leads table has disappeared. However, it seems to be something that only affected the leads table (the segments table works fine), have you guys had this problem? I have noticed it on two different installations.

Does anyone know anything about it?

**Your software**  
My Mautic version is: 5.03  
My PHP version is: 8.0  
My Database type and version is: mariadb

**Your problem**  
My problem is: The order function of the lead table is missing.

These errors are showing in the log: -

Steps I have tried to fix the problem: -

---

<div class="post-metadata">

**Author:** ![discovery-dave](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/discovery-dave/32/6497_2.png) [@discovery-dave](https://forum.mautic.org/u/discovery-dave)\
**Post date:** [March 8, 2024, 5:18pm UTC](https://forum.mautic.org/t/problem-with-mautic-reordertabledata-after-upgrading-to-mautic-5-03/30990/2 "2024-03-08T17:18:33Z")

</div>

I have exactly the same on 5.0.3 - segments table sorts correctly, contacts table does not show a sort order icon at the top of the column and clicking the column header does not change the sort order.

---

<div class="post-metadata">

**Author:** ![crozilla](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/crozilla/32/2054_2.png) [@crozilla](https://forum.mautic.org/u/crozilla)\
**Post date:** [April 1, 2024, 2:37am UTC](https://forum.mautic.org/t/problem-with-mautic-reordertabledata-after-upgrading-to-mautic-5-03/30990/3 "2024-04-01T02:37:01Z")

</div>

Same problem here. Can’t sort contacts by ID or Last Active or anything. Other than that, everything else seems to work (so far).

---

<div class="post-metadata">

**Author:** ![rrpp.online](https://avatars.discourse-cdn.com/v4/letter/r/7993a0/32.png) [@rrpp.online](https://forum.mautic.org/u/rrpp.online)\
**Post date:** [April 5, 2024, 12:15am UTC](https://forum.mautic.org/t/problem-with-mautic-reordertabledata-after-upgrading-to-mautic-5-03/30990/4 "2024-04-05T00:15:17Z")

</div>

would like to know if there is another person who has updated to Mautic 5.03 and has had the same issue. This is a big problem because leads cannot be sorted. It almost renders it useless. Can anyone contribute any ideas on where the problem might be found? Even if it’s just to review the code. I’m willing to do it if necessary. Thank you very much.

---

<div class="post-metadata">

**Author:** ![rrpp.online](https://avatars.discourse-cdn.com/v4/letter/r/7993a0/32.png) [@rrpp.online](https://forum.mautic.org/u/rrpp.online)\
**Post date:** [May 22, 2024, 1:25pm UTC](https://forum.mautic.org/t/problem-with-mautic-reordertabledata-after-upgrading-to-mautic-5-03/30990/5 "2024-05-22T13:25:00Z")

</div>

Solution:

curl [https://github.com/mautic/mautic/commit/cc0027778a911ca22837d52944571ae571cbaadc.patch](https://github.com/mautic/mautic/commit/cc0027778a911ca22837d52944571ae571cbaadc.patch) | sudo patch -p1  
bin/console mautic:a:g

o

"go to the directory app/bundles/CoreBundle/Controller/CommonController.php and replace the following line

if (null === $name) {  
with this:  
if (empty($name)) {

> <https://github.com/mautic/mautic/issues/13313>
>
> \### Mautic Version
> 
> 5.0.x series
> 
> \### Way of installing
> 
> I downloaded a release …from https://www.mautic.org/mautic-releases
> 
> \### PHP version
> 
> 8.2.4
> 
> \### What browsers are you seeing the problem on?
> 
> Not relevant
> 
> \### What happened?
> 
> The table order remains unchanged when clicking on the headers of the contact list table.
> 
> Tested on latest 5.0 branch - \`fdd8ffee1a768bed092641883ab0149458d68693\`
> 
> \### How can we reproduce this issue?
> 
> Step 1: Add at least two contacts
> Step 2: Click on the contact list table header
> !\[image\](https://github.com/mautic/mautic/assets/8580942/ce806e7f-c157-4a46-8101-796b21d70c88)
> 
> \### Relevant log output
> 
> \_No response\_
> 
> \### Code of Conduct
> 
> \- \[X\] I confirm that I have read and agree to follow this project's Code of Conduct
> 
> \<br /\>\<hr\>
> Care about this issue? Want to get it resolved sooner? If you are a \<a href='https://www.mautic.org/become-a-member-of-mautic'\>member of Mautic\</a\>, you can add some funds to the \<a href='https://opencollective.com/mautic/projects/bounties'\>Bounties Project\</a\> so that the person who completes this task can claim those funds once it is merged by a member of the core team! Read the docs \<a href='https://contribute.mautic.org/product-team/mautic-bounty-programme'\>here.\</a\>

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/1X/43c63600fe51440378769136903f1fa2a9a34102.png) [@system](https://forum.mautic.org/u/system)\
**Post date:** [May 24, 2024, 1:25am UTC](https://forum.mautic.org/t/problem-with-mautic-reordertabledata-after-upgrading-to-mautic-5-03/30990/6 "2024-05-24T01:25:46Z")

</div>

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.
