restored the company sort and the sort direction

Resolves http://bugs.web2project.net/view.php?id=1608