Fixed a weird behaviour after some tests in the order by select feature.