MOB-129 Moved link sorting to render function