Conditionally show the sort media button