Sort linkviews

This revives #770 which was reverted due to missing functionality in core.

We still need to wait for a core pr to get merged and a new core release before we can merge this.

@tgoyne @rrrlasse