sorting of links is done in controller

later it should be done on the server by the database