Reverse mathematics and Weihrauch reducibility for partial and linear orders