Fix: Restore sort feature. Still did not see why previous commit is a
bug fix of dolibarr bug.