order links within groups