When you say it doesn’t work you mean just that it doesn’t sort?
I think QUERY_STRING should generally be available but it’s not the normal way to get at the query string parameters in PHP. Have you tried using $_GET instead (it’s just the query string parameters automatically parsed into an array)? I’m not sure that would be the problem but it jumps out at me as odd.
Are either or both of these sites visible so you should share a link or links to them? Does the sorting work properly on the items browse pages of these sites?
get_records uses the Table model classes to build the query it uses, but that really shouldn’t change between servers.
The website is not public yet…
We might get ride of this functionnality as is not really relevant on this page.
I’ll let you know.
Thank you for trying to help me !
In general I’d look for other possible differences, if any. Something like the use of Item Order on one site but not the other, or some other plugin that affects sorting.