you should probably change your function name to something that doesn't overlap with an action name to avoid confusion, but the reason the one at the bottom isn't going away is because you're not removing it. This is w hat you need to remove the one at the bottom.
remove_action('woocommerce_pagination','woocommerce_catalog_ordering');